I have a written some generic JavaScript to zoom in/out on some time based line chart data using the mouse wheel. I've set up the hAxis:gridlines:units properties to have the full range of units from years down to milliseconds...
units: {
years: { format: ["yyyy"] },
months: { format: ["M/dd/yy"] },
days: { format: ["M/dd/yy"] },
hours: { format: ["haa"] },
minutes: { format: ["h:mmaa"] },
seconds: { format: ["m:ss"] },
milliseconds: { format: ["s.SSS"] }
}
This, I have working fine and Google's chart code nicely formats the most appropriate range for the current viewWindow. One minor issue... I'd like to improve clarity, by changing the hAxis:title when the Google chart code changes ranges... ie time (years), time (hours), etc. How do I query the chart about what set of units it is currently using?