I'm using Google Charts to show some timeseries data like that shown below. Typically the data has a high proportion of zero values so you get lots of points sitting along the x-axis. I think this makes the chart look cluttered and I'd like to not show points where y=0.
Any ideas / pointers much appreciated.
Thanks,
ct
Create or edit a bar, line, or mixed bar and line chart. If the metrics use the same unit of measurement, select the Display metrics on one axis check box. The range for the metrics are displayed on the left axis. Optionally, select the Start left axis at 0 checkbox to start the axis range at zero.
Use noData() method to enable "No data" label: chart. noData().
The best option is to use null instead of 0 (there will be missing points). And then you can use option interpolateNulls which will join the values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With