Re: [visualization-api] Google chart x axis label text

12 views
Skip to first unread message

Daniel LaLiberte

unread,
Jun 6, 2016, 10:22:47 AM6/6/16
to Google Visualization API
Yes, you can specify the format for each tick value if you are using the ticks option.  e.g.

 ticks: [{v:1, f:'one'}, {v:2, f:'two'}, 3]

On Mon, Jun 6, 2016 at 7:00 AM, Artūras Šliažas <sliazas...@gmail.com> wrote:

This is my chart example:


JSFiddle


Is there a possibility to define custom x axis label text for each tick, for example display 1.0 as 'foo', 1.5 - empty, 2.0 - 'bar' and so on. The thing is I can't use values of type string when I am using ChartRangeFilter.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/c55c0714-5d5f-4794-8a52-04d50d953515%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages