Hi,
I am getting a similar javascript error with when I am using
column charts:
error: this.z[...].c is null or not an object
Can you please let me know what correction you made to make it
work?
--- Srikanth
On May 4, 6:56 pm, Anand <[email protected]> wrote:
> This was an issue with the version I was using. V1.1 included a new
> element in JSON and hence this errror. I corrected this and it worked
> fine.
>
> -anand
>
> On May 3, 5:31 pm, Anand <[email protected]> wrote:
>
>
>
> > Hi,
>
> > Recently, my google visualization charts have started erroring out.
> > Here's my test data code:
>
> > <html>
> > <body>
> > <div id="chart_div">
> > Chart goes here
> > </div>
> > <div id="data_div">
> > Chart goes here
> > </div>
>
> > <script type="text/javascript"
> > src="https://www.google.com/jsapi"></
> > script>
> > <script type="text/javascript">
> > google.load("visualization", "1.1", {packages:
> > ["columnchart","table"]});
> > google.setOnLoadCallback(drawLineChart);
> > var data = new Object();
> > function drawLineChart() {
> > data = new google.visualization.DataTable(
> > eval( '({cols: [{id:
> > "col1", label: "Sales Category", type: "t"},{id: "col2", label:
> > "Current Campaign", type: "n"},{id: "col3", label: "Prior Campaign",
> > type: "n"}], rows: [[{v: "Award Sales"},{v: 0.0},{v: 118.0}],[{v: "Net
> > Sales"},{v: 0.0},{v: 13497.49}]]})' ) );
>
> > //var chart = new
> > google.visualization.ColumnChart
> > ( document.getElementById('chart_div') );
> > var table = new
> > google.visualization.Table(document.getElementById
> > ('data_div'));
> > table.draw(data, {showRowNumber: true});
>
> > //chart.draw(data);
>
> > }
> > </script>
> > </body>
> > </html>
>
> > It gives me the following error:
>
> > Error: this.z[a].c is undefined
> > Source
> > File:https://www.google.com/uds/api/visualization/1.1/ad6920cedb44b119a7c7...
> > Line: 252
>
> > Has anyone run into the same issue off late.
>
> > Thanks
> > Anand- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---