Hi Jinji, thanks for the fast reply...
I was trying what you told me, but it is not working...

I search for examples over the web and I found examples using "date"
and "number" OR "timeofday" and "number" BUT never an example using
"date" and "timeofday"

Is it possible to use both??
Could you please help here a little?
Thank you so much in advance...

this is my code i am trying with no success:

   <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('timeofday', 'Time');
        data.addRows([
                [new Date(2010,0,1),[2,56,21]],
                [new Date(2010,0,2),[3,12,56]],
                [new Date(2010,0,3),[3,12,55]],
                [new Date(2010,0,4),[2,45,44]],
                [new Date(2010,0,5),[3,11,33]],
                [new Date(2010,0,6),[2,11,22]],
                [new Date(2010,0,7),[3,12,12]]
        ]);

        var chart = new
google.visualization.AnnotatedTimeLine(document.getElementById('chart_finBatches'));
        chart.draw(data, {displayAnnotations: false, thickness:2,
fill: 50, legendPosition:'newRow'});
      }
    </script>
<div id='chart_finBatches' style='width: 940px; height: 400px;'></div>
------------------------------------------------------------------------------------------------------------------

On Sun, Sep 5, 2010 at 7:41 AM, Jinji <[email protected]> wrote:
> Have you tried to set the column type (DataTable.addColumn) to 'timeofday'?
>
> On Sun, Sep 5, 2010 at 10:26 AM, bazito <[email protected]> wrote:
>>
>> Hi...
>>
>> There is a batch process in my work running every night... and the
>> time it ends vary significantly...
>>
>> So I need to make a chart (timeline) to show the different time the
>> batch ended in a different day...
>> my table would be something like this:
>>
>>     date      |     finished
>> --------------------------------------
>> 2010-09-01 |  03:52:44 am
>> 2010-09-02 |  04:04:09 am
>> 2010-09-03 |  03:34:23 am
>> 2010-09-04 |  03:04:10 am
>>
>> as you can see the "finished" column is not a number, but a time...
>> when i try to put this data into the timeline chart nothing happens,
>> any clue how can I manage this?
>>
>> thank you!
>>
>> --
>> 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.
>>
>
> --
> 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.
>

-- 
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.

Reply via email to