If a chart has four data series. How can the first three data series be set to the same scale and the fourth be set to a different scale?
- Jared On Jan 8, 6:08 am, VizGuy <[email protected]> wrote: > scaleColumns configuration option is an array of numbers and not of the > column ids > (http://code.google.com/apis/visualization/documentation/gallery/annot... > ). > 0 refers to the first data series, and so on. > So in this case you should specify: > scaleColumns: [0, 1] > > Regards, > VizGuy > > On Thu, Jan 8, 2009 at 2:57 AM, Jared Brown <[email protected]> wrote: > > > Is scaleColumns: ['Concentration', 'INR'] correct? > > > On Jan 6, 11:12 pm, Jared Brown <[email protected]> wrote: > > > I am using the annotated time line chart. I have two data series that > > > I am charting. When I don't use ScaleColumns the Y-Axis appears > > > fine. With ScaleColumns set the chart does not display Y-Axis values. > > > > My chart draw function looks like: > > > > chart.draw(data, {displayAnnotations: true, scaleColumns: > > > ['Concentration', 'INR'], scaleType: 'allmaximize', legendPosition: > > > 'newRow', zoomStartTime: new Date(2009, 0, 1), zoomEndTime: new Date > > > (2009, 0, 31)}); > > > > This is a sample of my data: > > > > var data = new google.visualization.DataTable(); > > > data.addColumn('date', 'Date'); > > > data.addColumn('number', 'Concentration'); > > > data.addColumn('string', 'title1'); > > > data.addColumn('string', 'text1'); > > > //data.addColumn('number', 'Lower Bound'); > > > //data.addColumn('number', 'Upper Bound'); > > > data.addColumn('number', 'INR'); > > > > data.addRows(92); > > > > data.setValue(0, 0, new Date(2009, 1, 12, 2, 0, 0)); > > > data.setValue(0, 1, 1.02); > > > //data.setValue(0, 4, 0.44); > > > //data.setValue(0, 5, 1.06); > > > data.setValue(1, 0, new Date(2009, 1, 12, 23, 59, 59)); > > > data.setValue(1, 1, 0.52); > > > data.setValue(2, 0, new Date(2009, 1, 3, 2, 0, 0)); > > > data.setValue(2, 1, 1.03); > > > //data.setValue(2, 4, 0.44); > > > //data.setValue(2, 5, 1.06); > > > > This goes from 0 - 91 data sets. > > > > Any assistance would be appreciated. > > > > Thank you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
