Hi Keith,

I now have this:
function drawVisualization() {
  var data = new google.visualization.DataTable();
  data.addColumn('date', 'Date');
  data.addColumn('number', 'Sold Pencils');
  data.addColumn('string', 'title1');
  data.addRows(6);
  data.setValue(0, 0, new Date(2008,1,1,9,23,45));
   data.setValue(1, 0, new Date(2008,1,1,10,23,45));
   data.setValue(2, 0, new Date(2008,1,1,14,23,45));
   data.setValue(3, 0, new Date(2008,1,1,15,23,45));
   data.setValue(4, 0, new Date(2008,1,1,16,23,45));
  data.setValue(5, 0, new Date(2008,1,2,18,23,45));


  var annotatedtimeline = new google.visualization.AnnotatedTimeLine(
      document.getElementById('visualization'));
    annotatedtimeline.draw(data, {'displayAnnotations': true,
 'dateFormat':'HH:mm MMMM dd, yyyy'});
}

But the playground code result is an empty graph with "no data
available"...what am I doing wrong?

Thanks! (also for the FYI :)


On Jul 4, 1:38 am, KeithB <[email protected]> wrote:
> Sure.
>
> Fromhttp://code.google.com/apis/visualization/documentation/gallery/annot...
> :
> "You can display one or more lines on your chart. Each row represents
> an X position on the chart--that is, a specific time; each line is
> described by a set of one to three columns.
> The first column is of type date or datetime, and specifies the X
> value of the point on the chart. If this column is of type date (and
> not datetime) then the smallest time resolution on the X axis will be
> one day."
>
> Edit the code playground 
> athttp://code.google.com/apis/ajax/playground/?type=visualization#annot...
> :
>
> to specify something like:
>
>   data.setValue(0, 0, new Date(2008,1,1,9,23,45));
>   data.setValue(1, 0, new Date(2008,1,1,10,23,45));
>   data.setValue(2, 0, new Date(2008,1,1,14,23,45));
>   data.setValue(3, 0, new Date(2008,1,1,15,23,45));
>   data.setValue(4, 0, new Date(2008,1,1,16,23,45));
>   data.setValue(5, 0, new Date(2008,1,2,18,23,45));
>
>   annotatedtimeline.draw(data, {'displayAnnotations': true,
> 'dateFormat':'HH:mm MMMM dd, yyyy'});
>
> Cheers,
> Keith
>
> P.S. - Interactive Charts has their own forum 
> @http://groups.google.com/group/google-visualization-api- Just an FYI

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart 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-chart-api?hl=en.

Reply via email to