I have a line chart with hours shown on the hAxis (0,12,24,...,120) and I want to show the label on the hAxis every X hours (where X is a human-sensible number like 12, 24 or 48). Having the hAxis be discrete (type 'string') and hAxis.showTextEvery:24 seems to work fine for this.
But then there seems to be no good way to format the hAxis tooltip text in Line charts with focusTarget: 'category' in discrete charts. All I want to do is to have a prefix in the tooltip before the value (so it shows: 'Hour: X' instead of just 'X' in the tooltip), but to see it with the prefix one has to prefix the actual value in the data, which in turn changes the labels on the xAxis itself... Switching to continuous hAxis values and having a NumberFormat helps but then I lose the ability to control the number of labels shown on the hAxis (so it shows every 7-th hour, for example which). hAxis.showTextEvery doesn't work in a predictable way with continuous charts (the documentation says it only works with discrete charts). With continuous charts it kind of works (different values change the number of labels) but in a hard to predict way. Does anybody know a good way of solving this? -- 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.
