This is a migrated thread and some comments may be shown as answers.

HtmlChart and a List DataSource

1 Answer 28 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 17 Oct 2012, 02:47 AM
just trying the HtmlChart from Version 2012.2.724.35 using a List DataSource and the sample code from the HtmlChart List demo.  While running the control in IE9, discovered this javascript error 

The Java Debug returns an error

Expected ']' at line



[-]  this._dataSource "[[{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45}]{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45}]" 

It appears to be malformed. Any suggestions are appreciated
Cheers

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 19 Oct 2012, 12:39 PM
Hi Dave,

There were some issues with certain cultures that had commas for decimal signs. They have been fixed with later versions of the control, so I advise that you upgrade to the latest (Q3 2012 currently, the Q2 2012 SP2 also has this fix) and test again.


All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (HTML5)
Asked by
Dave
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or