Hide Zero Value Points On Google Chart
I have a line chart which needed a series of points. I don't want points to show if the value is zero.Here's my solution:
- Set the series's lineWidth to zero and make the point larger than 0:
series: {0: {lineWidth: 0, pointSize: 5}} - Make the viewWindow setting's min higher than 0 (to hide the 0 points):
vAxis: { viewWindowMode:'explicit', viewWindow:{ min: 0.5 } },