Hi, we want to plot 4 series of data into an anotated timeline. Serie 1 is a percentage and the other 3 are number formats with serie 2 and 4 values of max 100 and serie 3 values of max 30 K
We dont get the axes right. when set the scaletype to allmaximized there are pionts in time where the serei 2 and 3 are on 1 point althought there actual numbers are 300 and 30K. So thats confusing. To ullistrate it with playground code: http://code.google.com/apis/ajax/playground/?type=visualization#annotated_time_line_configuration the point of 'sold papers' thats has a value of 800K on feb 3 is the same hight on the Y-axe as the value 'sold pencils' of 75.284 on feb 4 see the results on http://savedbythegoog.appspot.com/?id=1d26a0857a9c2fc6dc73cae41b8f2cf5b45c4d07 QUESTION: is it possible to give each serie or group of series an own scale type? The code: function drawVisualization() { var data = new google.visualization.DataTable(); data.addColumn('date', 'Date'); data.addColumn('number', 'Sold Pencils'); data.addColumn('string', 'title1'); data.addColumn('string', 'text1'); data.addColumn('number', 'Sold Pens'); data.addColumn('string', 'title2'); data.addColumn('string', 'text2'); data.addColumn('number', 'Sold Papers'); data.addColumn('number', 'extra 4'); data.addColumn('string', 'title1'); data.addColumn('string', 'text1'); data.addRows(6); data.setValue(0, 0, new Date(2009, 1 ,1)); data.setValue(0, 1, 30); data.setValue(0, 4, 4); data.setValue(0, 7, 1); data.setValue(0, 8, 10); data.setValue(1, 0, new Date(2009, 1 ,2)); data.setValue(1, 1, 140); data.setValue(1, 4, 4); data.setValue(1, 7, 444); data.setValue(1, 8, 10); data.setValue(2, 0, new Date(2009, 1 ,3)); data.setValue(2, 1, 55022); data.setValue(2, 4, 4); data.setValue(2, 7, 800000); data.setValue(2, 8, 23); data.setValue(3, 0, new Date(2009, 1 ,4)); data.setValue(3, 1, 75284); data.setValue(3, 4, 4); data.setValue(3, 5, 'Out of Stock'); data.setValue(3, 6, 'Ran out of stock on pens at 4pm'); data.setValue(3, 7, 16345); data.setValue(3, 8, 30); data.setValue(4, 0, new Date(2009, 1 ,5)); data.setValue(4, 1, 41476); data.setValue(4, 2, 'Bought Pens'); data.setValue(4, 3, 'Bought 200k pens'); data.setValue(4, 4, 4); data.setValue(4, 7, 41345); data.setValue(4, 8, 200); data.setValue(5, 0, new Date(2009, 1 ,6)); data.setValue(5, 1, 33322); data.setValue(5, 4, 4); data.setValue(5, 7, 33665); data.setValue(5, 8, 20); var annotatedtimeline = new google.visualization.AnnotatedTimeLine( document.getElementById('visualization')); annotatedtimeline.draw(data, { //'allValuesSuffix': '%', // A suffix that is added to all values 'colors': ['blue', 'red', '#0000bb'], // The colors to be used 'displayAnnotations': true, 'displayExactValues': true, // Do not truncate values (i.e. using K suffix) 'displayRangeSelector' : true, // Do not sow the range selector 'displayZoomButtons': true, // DO not display the zoom buttons 'fill': 30, // Fill the area below the lines with 20% opacity 'legendPosition': 'newRow', // Can be sameRow //'max': 100000, // Override the automatic default //'min': 100000, // Override the automatic default 'scaleColumns': [0,1 ], // Have two scales, by the first and second lines 'scaleType': 'allmaximized', // See docs... 'thickness': 2, // Make the lines thicker 'zoomStartTime': new Date(2009, 1 , 2), //NOTE: month 1 = Feb (javascript to blame) 'zoomEndTime': new Date(2009, 1 ,5) // NOTE: month 1 = Feb (javascript to blame) }); -- 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.
