This seems to be similar to the issue I was having (http://
groups.google.com/group/google-visualization-api/browse_thread/thread/
d0d0ae1d70e887db). You can reproduce it by running this snippet of
code:
<html>
<head>
<script type='text/javascript' src='http://www.google.com/
jsapi'></
script>
<script type='text/javascript'>
google.load('visualization', '1', {'packages':
['annotatedtimeline']});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('date', 'Date');
data.addColumn('number', 'Sold Pencils');
data.addRows(6);
data.setValue(0, 0, new Date(2008, 1 ,1));
data.setValue(0, 1, 0);
data.setValue(1, 0, new Date(2008, 1 ,2));
data.setValue(1, 1, 0.3);
data.setValue(2, 0, new Date(2008, 1 ,3));
data.setValue(2, 1, 0);
data.setValue(3, 0, new Date(2008, 1 ,4));
data.setValue(3, 1, 0.3);
data.setValue(4, 0, new Date(2008, 1 ,5));
data.setValue(4, 1, 0);
data.setValue(5, 0, new Date(2008, 1 ,6));
data.setValue(5, 1, 0);
var chart = new google.visualization.AnnotatedTimeLine
(document.getElementById('chart_div'));
chart.draw(data, {displayAnnotations: true});
}
</script>
</head>
<body>
<div id='chart_div' style='width: 700px; height: 240px;'></div>
</body>
</html>
On Mar 24, 3:25 am, VizGuy <[email protected]> wrote:
> Interesting... Will look into it.
>
> Thanks for reporting.
>
> VizGuy
>
>
>
> On Thu, Mar 19, 2009 at 9:41 PM, LH <[email protected]> wrote:
>
> > Some users and I recently tried visualizing a data file with a
> > significant number of zeroes, and (for now) a single data line. The
> > upper portion of the chart displays fine, but in the lower part of the
> > chart, the zeroes are plotted as maximal, rather than minimal,
> > values. It's decidedly counterintuitive, and bothered my users. I've
> > put up a screenshot athttp://aegisflu.appspot.com/img/weird_zeroes.png.
>
> > If it matters, I'm generating the js for the site using gwt and the
> > vizapi library for it.
>
> > Is there anything to be done about this? Is it a known issue? (I
> > can't off hand find anything; it's not the same as
>
> >http://groups.google.com/group/google-visualization-api/browse_thread...
> > .)
>
> > Really enjoying the VizAPI, and the related gwt library.
>
> > Regards,
> > LH
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---