I'm wondering how to set axis step in a google chart built from JavaScript? I use this to set min and max:
vAxis: {
title: 'temps (ms)',
viewWindowMode: 'explicit',
viewWindow: {
max: 180,
min: 0
},
}
And I need to add an other constraint to fix vertical step to 0.1 for example.
You can do it with ticks:
vAxis: {
title: 'temps (ms)',
viewWindow: {
min: 0,
max: 180
},
ticks: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180] // display labels every 10
}
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