Hi Martin, There is a section on DataFormatters here: https://developers.google.com/chart/interactive/docs/reference#formatters
and there is a separate page on Dates and Times here: https://developers.google.com/chart/interactive/docs/datesandtimes The Material charts don't have as much control over the date and time format, however, so you should probably stick with the classic corecharts. Hope that helps. On Wed, Apr 12, 2017 at 5:27 PM, Martin Underwood < [email protected]> wrote: > I'm very new to Google Charts and I'm experimenting with very simple line > graphs of a variable versus date or date and time. In the resulting graph, > if I hover over a point, a tooltip pops up which gives the value of the > variable and the date - but the date is always in US "MMM d, yy" format (eg > "Jan 1, 17"). Is there a way of customising the format - for example "1 Jan > 2015 13:47" with day before month (I'm British, and we prefer it that way > round!) and with time as well as date. > > I've attached the code, which is based very much on a Google Charts > example with a few of my tweaks. > > I know I could attach explicit tooltip text to each data point, but is > there a more elegant method where you just change a format attribute for > the tooltip. > > -- > 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 google-visualization-api@ > 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/dc4c2ada-eb66-4d3a-b4a6- > 5b676571daa6%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/dc4c2ada-eb66-4d3a-b4a6-5b676571daa6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge 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 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/CAOtcSJMcGRkKzb1Sx%2BvpeUYyrwHwcvaDa1-K95q3eDNeGrvONA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
