A new feature is becoming available (perhaps in 1.1 next week) that will do what you want. It lets you specify the tick values to use with a continuous axis along with (optionally) the formatted representation of each value. The option that you include in any *Axis option is named 'ticks' and the value is an array of values or objects containing 'v' and 'f' properties. The values don't have to be in order - it will sort them for you just to be sure. E.g.
'ticks': [new Date(1990, 1, 1), {v: new Date(2000, 1, 1), f: 'Y2K'}, new Date(1995, 1, 1), // Out of order is ok new Date(2005, 1, 1), new Date(2010, 1, 1)] Hope that helps. dan On Thu, May 30, 2013 at 3:19 PM, Huy Tran <huyqtra...@gmail.com> wrote: > Hello all, > > I want to construct a Bar Chart that displays the name of different phones > on the y-axis and numbers ranging from 0-5 on the x-axes. Because Google > Charts does not support String vs String charts (to my knowledge), I want > to assign integer values to different ratings. > > For example: Given Motorola - 4, iPhone - 3, Nexus - 5, it would > correspond to Motorola - Great, iPhone- Good, Nexus - Perfect on the rating > scale. > > I can create the chart with no problems but I want to be able to display > text on the x-axis instead of the Integer Values. So instead of 0, 1, 2 ... > 5, it would display Bad, Ok,... , Perfect for x-axis values. > > I was looking through the documentation and playing around with formats > and roles but could not come up with a solution. > > Is it possible? If so, a demo or example of some sort would be greatly > appreciated. > > Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "Google Chart API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-chart-api+unsubscr...@googlegroups.com. > To post to this group, send email to google-chart-api@googlegroups.com. > Visit this group at http://groups.google.com/group/google-chart-api?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 dlalibe...@google.com <dlalibe...@google.com> 562D 5CC, Cambridge MA daniel.lalibe...@gmail.com <daniel.lalibe...@gmail.com> 9 Juniper Ridge Road, Acton MA -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-chart-api+unsubscr...@googlegroups.com. To post to this group, send email to google-chart-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-chart-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.