Hello and thanks for the reply. Here is the Json object I use to build the
datatable object that feeds the graph.
{cols:[{label:'date',type:'date'},{label:'',type:'number'}],rows:
[{c:[{v:new Date(2007,02,01)},{v:0.3}]},{c:[{v:new
Date(2007,02,28)},{v:0.3}]},{c:[{v:new
Date(2007,03,30)},{v:0.1}]},{c:[{v:new
Date(2007,05,01)},{v:0.1}]},{c:[{v:new
Date(2007,05,29)},{v:0.1}]},{c:[{v:new
Date(2007,06,30)},{v:0.1}]},{c:[{v:new
Date(2007,07,31)},{v:0.1}]},{c:[{v:new
Date(2007,08,28)},{v:0.1}]},{c:[{v:new
Date(2007,10,01)},{v:0.2}]},{c:[{v:new
Date(2007,10,30)},{v:0.2}]},{c:[{v:new
Date(2007,11,21)},{v:0.2}]},{c:[{v:new
Date(2007,12,31)},{v:0.2}]},{c:[{v:new
Date(2008,01,29)},{v:0.3}]},{c:[{v:new
Date(2008,02,28)},{v:0.1}]},{c:[{v:new
Date(2008,04,01)},{v:0.2}]},{c:[{v:new
Date(2008,04,30)},{v:0.1}]},{c:[{v:new
Date(2008,05,27)},{v:0.1}]},{c:[{v:new
Date(2008,07,04)},{v:0.3}]},{c:[{v:new
Date(2008,07,29)},{v:0.3}]},{c:[{v:new
Date(2008,08,29)},{v:0.2}]},{c:[{v:new
Date(2008,09,30)},{v:0.2}]},{c:[{v:new Date(2008,10,26)},{v:0}]},{c:[{v:new
Date(2008,11,24)},{v:0}]},{c:[{v:new Date(2009,01,02)},{v:0}]},{c:[{v:new
Date(2009,02,02)},{v:0.2}]},{c:[{v:new
Date(2009,02,27)},{v:0.2}]},{c:[{v:new
Date(2009,03,30)},{v:0.2}]},{c:[{v:new
Date(2009,05,01)},{v:0.3}]},{c:[{v:new
Date(2009,05,26)},{v:0.1}]},{c:[{v:new
Date(2009,07,04)},{v:0.2}]},{c:[{v:new Date(2009,07,28)},{v:0.1}]}]}
here is the js function I use to draw the graf
function drawIt(datatable, div) { eval("var jsonObject =" + datatable); var
data = new google.visualization.DataTable(jsonObject); var chart = new
google.visualization.AnnotatedTimeLine(document.getElementById(div));
$('loaderImg').remove(); chart.draw(data, { 'displayAnnotations': false,
'displayAnnotationsFilter':false, 'allowHtml':true, 'fill': 20, 'thickness':
2 }); }
the result is the attached image.
thanks.
You can browse more examples on our site
http://www.fxstreet.com/fundamental/economic-calendar/ after cliking one of
the displayed events and inside the history tab.
On Thu, Oct 1, 2009 at 9:29 PM, VizGuy <[email protected]> wrote:
> While this looks like a bug, I have never seen other cases like this.
> The line at the range selection are is a logarithmic manipulation of the
> last (in this case - only) data line.
>
> Could you provide some real data that creates this problem so we can track
> it down?
>
>
> Thanks,
> VizGuy
>
>
> On Thu, Oct 1, 2009 at 11:25 AM, Albert <[email protected]> wrote:
>
>> any tips on that? is that a bug or a malfunction?
>>
>>
>> On Wed, Sep 30, 2009 at 12:03 PM, Albert <[email protected]>wrote:
>>
>>>
>>> Hi. I have found some inconsistense betwen the main graph of the
>>> annotation time line and the graph displayed in the range selection area.
>>> You can see in the picture the "unlogic" diferences. Is that a known bug.
>>> I'm doing something wrong?
>>>
>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
<<attachment: result.png>>
