Thanks for reporting this issue.We will look into it and see what can be done.
I have no quick workaround though. Regards, VizGuy On Mon, Jun 1, 2009 at 8:09 PM, dkindlund <[email protected]> wrote: > > It's best I explain this by example, using the pens code as a basis > from the AJAX API. Specifically, by setting all the data points of > the "Sold Pencils" line to zero, and asking for a "allfixed" scaleType > and a fill of 50, we can see that: > 1) The *entire* graph is colored (filled) blue, rather than below any > of the lines. > 2) *None* of the graph scales are displayed properly. > > I believe this is a bug, specifically in instances where an entire > dataset for a column is zero. > > Here's the code to reproduce: > > 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.addRows(6); > data.setValue(0, 0, new Date(2008, 1 ,1)); > data.setValue(0, 1, 0); > data.setValue(0, 4, 40645); > data.setValue(1, 0, new Date(2008, 1 ,2)); > data.setValue(1, 1, 0); > data.setValue(1, 4, 20374); > data.setValue(2, 0, new Date(2008, 1 ,3)); > data.setValue(2, 1, 0); > data.setValue(2, 4, 50766); > data.setValue(3, 0, new Date(2008, 1 ,4)); > data.setValue(3, 1, 0); > data.setValue(3, 4, 14334); > data.setValue(3, 5, 'Out of Stock'); > data.setValue(3, 6, 'Ran out of stock on pens at 4pm'); > data.setValue(4, 0, new Date(2008, 1 ,5)); > data.setValue(4, 1, 0); > data.setValue(4, 2, 'Bought Pens'); > data.setValue(4, 3, 'Bought 200k pens'); > data.setValue(4, 4, 66467); > data.setValue(5, 0, new Date(2008, 1 ,6)); > data.setValue(5, 1, 0); > data.setValue(5, 4, 39463); > > var annotatedtimeline = new google.visualization.AnnotatedTimeLine( > document.getElementById('visualization')); > annotatedtimeline.draw(data, {'displayAnnotations': true, > legendPosition: "newRow", scaleType: "allfixed", fill: 50, > scaleColumns: [0, 1], thickness: 2, colors: ["red", "orange"], > displayExactValues: true, allowHtml: true}); > } > > Please let me know how I can resolve this issue. > Thanks, > -- Darien > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
