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.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/7bb643fa-c60f-4788-8fc2-b336e2627364%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to