Hi Jago,

- If you install Firebug for Firefox, you will have a console() object 
to which you can write debug data;  BUT remember that the console object 
only exists as long as firebug is installed - you must ensure that you 
remove the references to it before the code moves to production.

- If you require interactive debugging, check out Venkman Debugger for 
Firefox:  this approximates a full symbolic step debugger for Javascript 
on the client.

-John

jago wrote:
> Sadly all examples are written in Javascript, so there is no
> possibility to modify running code slowly.
>
> 1. Can somebody tell me how to better find out where problems in my
> code is? Perhaps some debugging messages one can print out?
>
> 2. Can somebody check my code below and tell me what to change so it
> works? Or provide me with a similar example using JSon?
>
>
> Cheers,
> jago
>
> <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 chart = new google.visualization.AnnotatedTimeLine
> (document.getElementById('chart_div'));
>               var json_data = new google.visualization.DataTable( {cols:
> [{id:'point_in_time',label:'point in time',type:'date'},
> {id:'columnlabel0',label:'columnLabel0',type:'number'} ], rows: [ {c:
> [{v:new Date(2008, 1, 28, 0, 31, 26)}, {v:30000}]}, {c:[{v:new Date
> (2008, 1, 29, 0, 31, 26)}, {v:40000}]} ] } );
>               chart.draw(json_data, {displayAnnotations: false});
>       }
>     </script>
>   </head>
>
>   <body>
> <div id='chart_div'></div>  </body>
> </html>
> >
>
>   

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