Hi,
I'm using the following simple options for my dual-y axis chart:
options = {
chart: { title: 'Activity' },
series: { 0: {axis: 'power'}, 1: {axis: 'soc'} },
axes: { y: { power: {label: 'Power (kW)'}, soc: {label: 'SOC (%)'} } },
};
I can't for the life of me figure out how to get the min and max to work. I just want simple, fixed axes on the left and right. I want to restrict the series 0 (left axis) to -100 to 100 and series 1 (right axis) from 0 to 100. I've tried vAxis, vAxes, viewWindow min and max, etc. I either can't quite figure out the syntax, or I'm not putting the options in the right place. I would think the following would work, but it has no effect:
options = {
chart: { title: 'Samsung Activity' },
series: { 0: {axis: 'power'}, 1: {axis: 'soc'} },
axes: { y: { power: {label: 'Power (kW)'}, soc: {label: 'SOC (%)'} } },
vAxes: {
0: { viewWindow: { min: -100, max: 100 } },
1: { viewWindow: { min: 0, max: 100 } } },
};
Help would be much appreciated. Thanks.