Specifying the tick marks would work. Here is an example of options (you just need vAxis:{ ticks: [-1, 0, 1, 2, 3, 4, 5] } ): var options = { width: 500, //adjust as needed so the x and y scales are the same. height: 500, //adjust as needed so the x and y scales are the same. seriesType: "line", hAxes: {0: {viewWindowMode:'explicit', viewWindow:{max:5, min:-1} } }, vAxes: {0: {viewWindowMode:'explicit', viewWindow:{max:5, min:-1} } }, //vAxis: { gridlines : { count : 5 } }, // this does work if needed for something. //hAxis: { gridlines : { count : 20 } }, // this does work if needed for something. hAxis:{ gridlines : { count : 20 }, // doesn't do anything when ticks is used. ticks: [-1, 0, 1, 2, 3, 4, 5], // ticks takes priority over gridlines // apparently. can comment out ticks to see this happen. gridlines : { count : 20 } }, // doesn't do anything when ticks is used. vAxis:{ ticks: [-1, 0, 1, 2, 3, 4, 5] },
On Friday, September 16, 2022 at 4:24:37 AM UTC-5 Trương Minh Luân wrote: > > [image: Screenshot 2022-09-16 161529.png] > How to remove number zero in y-axist , I want to remove it because It's > x-axist has same value zero and I just need show one value > -- 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 google-visualization-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/c12f69cc-309b-4a67-970b-43ff80dbb619n%40googlegroups.com.