Hi, all. I've been working with the AnnotatedTimeLine for several days
now. We're happy with many aspects of it. One thing is confusing me.
When we plot roughly 200 values with a range in values from 0 to 2
(hourly datetime data for about a week), down in the scrollbar area
the zero values do not seem to display as zero. It actually appears
that they plot as 1. So the scrollbar timeline looks nothing like the
graph in the main/top frame (the top graph area looks correct). If I
could post a screenshot, it would be clear.
Any thoughts on why this might be, and how to correct? Thanks for any
input.
Code sample (abridged for the sake of brevity):
***
function drawAnnoChart() {
var data = new google.visualization.DataTable();
data.addColumn('datetime', 'Date');
data.addColumn('number', 'Series A');
data.addRows(192);
data.setValue(0, 0, new Date(2009, 1, 11, 0, 00, 00 ));
data.setValue(1, 0, new Date(2009, 1, 11, 1, 00, 00 ));
data.setValue(2, 0, new Date(2009, 1, 11, 2, 00, 00 ));
data.setValue(3, 0, new Date(2009, 1, 11, 3, 00, 00 ));
data.setValue(4, 0, new Date(2009, 1, 11, 4, 00, 00 ));
data.setValue(5, 0, new Date(2009, 1, 11, 5, 00, 00 ));
data.setValue(6, 0, new Date(2009, 1, 11, 6, 00, 00 ));
data.setValue(7, 0, new Date(2009, 1, 11, 7, 00, 00 ));
data.setValue(8, 0, new Date(2009, 1, 11, 8, 00, 00 ));
data.setValue(9, 0, new Date(2009, 1, 11, 9, 00, 00 ));
data.setValue(10, 0, new Date(2009, 1, 11, 10, 00, 00 ));
data.setValue(11, 0, new Date(2009, 1, 11, 11, 00, 00 ));
data.setValue(12, 0, new Date(2009, 1, 11, 12, 00, 00 ));
//etc.
data.setValue(0, 1, 0.00);
data.setValue(1, 1, 0.00);
data.setValue(2, 1, 0.00);
data.setValue(3, 1, 0.00);
data.setValue(4, 1, 0.00);
data.setValue(5, 1, 0.00);
data.setValue(6, 1, 0.00);
data.setValue(7, 1, 0.00);
data.setValue(8, 1, 0.00);
data.setValue(9, 1, 0.04);
data.setValue(10, 1, 0.34);
data.setValue(11, 1, 1.28);
data.setValue(12, 1, 1.60);
//etc.
annochart.draw(data, {displayAnnotations: false,
displayExactValues: true, fill: 20, thickness: 2, legendPosition:
'newRow'});
}
***
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---