sure thing....

all you have to do is assign a formatter to your data

var formatter = new google.visualization.DateFormat({pattern: "yyyy"});
formatter.format(data, 0);

some more info can be obtained here:
http://code.google.com/apis/chart/interactive/docs/reference.html#dateformatter




On Mon, Nov 21, 2011 at 3:11 PM, Kevin <[email protected]> wrote:

> Sorry, I wasn't clear. I'd like to customize the label values.
>
> To clarify a little more:
>
> My x axis is date values, and I've plotted hundreds of dates spanning
> decades.
>
> Presently, I have the chart setup to show an x axis label once every
> five years using the showTextOnly parameter. This works pretty well,
> but the x axis labels reflect the specific dates (2000-01-01) and I'd
> like to show the year only (2000).
>
> I can take care of cleaning up the values, but I don't know if there's
> a way to pass them into the chart.
>
> Thanks again for your help.
>
> Kevin
>
> On Nov 20, 11:33 pm, Roni Biran <[email protected]> wrote:
> > When you say customizing what exactly do you mean? You have the
> > capabilities to modify the look-n'-feel of the axis as well as formatting
> > their values. What else do you need?
> >
> > On 21 בנוב 2011, at 05:45, Kevin <[email protected]> wrote:
> >
> > I'm trying to customize the x axis labels on a line chart using the
> > Visualization API, but haven't been able to find any documentation on
> > how to do so.
> >
> > From what I can tell, the image API has a chxl parameter to accomplish
> > this, but I haven't had any luck applying that to the Visualization
> > API. Maybe I'm doing it wrong (or maybe it isn't supported).
> >
> > Can anyone point me in the right direction?
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Visualization API" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group athttp://
> groups.google.com/group/google-visualization-api?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to