You can use a DataView which takes the formatted value of your domain column and uses that as the base value (effectively converting from date to string types) and draw the chart with that, but in doing so, you change to a discrete axis from a continuous axis (see an example of differences here<http://jsfiddle.net/asgallant/Xfx3h/> ).
On Monday, April 8, 2013 11:46:43 AM UTC-4, PatW wrote: > > Is there a way to manually label the h-axis using the f labels from the > JSON data structure? > > On Monday, April 8, 2013 11:42:52 AM UTC-4, asgallant wrote: >> >> The "week of year" date formatting is not yet supported by the API. You >> can manually calculate week-of-year and transform your date axis into a >> string or number axis, if that would help you. >> >> On Monday, April 8, 2013 10:58:51 AM UTC-4, PatW wrote: >>> >>> Hi! >>> >>> I have a dashboard that contains an area graph and a chart range filter >>> control. I want the haxis in the chart and control to show week of year >>> values instead of the default date. For example, I have a date: >>> Date(2013,02,01), I want to get the week of the year from this date to >>> appear on the haxis. My data table and the tooltips show these values >>> correctly by default but I cannot get the haxis on the chart to display >>> those values. Could anyone help me out with this? I >>> have attached screenshots of my charts. >>> >> -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
