Help using viewWindow in axis options

9 views
Skip to first unread message

Greg Slocum

unread,
Aug 21, 2018, 9:13:51 AM8/21/18
to Google Visualization API
I have a dual line chart with data for units and value charted against date. The data for the value are simply the data for the units times a constant, so the lines track each other.  With the automatic scaling, the lines are often almost on top of each other.

I'd like to set the scale of at least one axis slightly different than the automatic scaling, so that both lines are clearly visible.

I tried using viewWindow, but have something wrong, probably in the syntax.  In the attached file, I added a line for axis 0,

           vAxes: {
//        0: {viewWindow: min: 0, max: 200000},
               0: {title: 'Units (BUn)'},
               1: {title: 'Vaue (USD)'}
                   },

When I remove the //, the chart no longer displays.  When I restore them, the chart displays, but with the lines almost on top of each other.

Any correction that will get the chart to display with slightly offset lines would be greatly appreciated.

SandQ101V568023M2104348.htm
Reply all
Reply to author
Forward
0 new messages