Hi Phil,

The API does not currently support the feature you want, but fortunately,
it will in the very near future.  The new feature will let you specify an
array of tick values, along with an optional formatted string
representation of each value.  For example:

  vAxis: {
    ticks: [ 0, { v: 1, f: 'low' }, { v: 2, f: 'medium' }, { v: 3, f:
'high' }, 4 ]
  }

This feature will be available with the 1.1 release within a couple days,
if it is not already available. (I'm on vacation, so I cannot verify at the
moment.)  So you can safely avoid hacking the SVG.

dan


On Fri, Jul 19, 2013 at 10:20 PM, Ambientson <[email protected]>wrote:

> Hello,
>
> I am creating a ColumnChart that should display the activity level of a
> person. The activity level can be low, medium or high.
>
> Since this is a very simple chart, I have no problem creating the chart
> and displaying the data by representing low as 1, medium as 2 and high as
> 3. However, I would like to modify the vaxis labels so that they show low,
> medium, high instead of 0,1,2,3.
>
> Is there any way this can be done?
>
> I am not very confident that this can take place since axes are basically
> re-scaled based on values in the underlying data table but is there a way I
> could specify my data series as being finite (range) and then modify the
> vaxis label as I see fit?
>
> Otherwise, I have a feeling I'm going to have to modify the SVG after
> creation through javascript and and really don't feel like doing that...!
>
> Many thanks,
>
> Phil
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   562D 5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to