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

Your piechart remote data project not working correctly cross-domain?

1 Answer 42 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Vaughn Myers
Top achievements
Rank 1
Vaughn Myers asked on 22 Jul 2013, 01:23 PM
Your example of pie chart remote data binding works great when the web service is hosted in the same place as the HTML, but it seems to be erratic if the web service is hosted somewhere else.

What I did was create a WCF service that returns a JSON object exactly like your example web service, and then call it with your exact HTML.

Reproducing the error is simple:  take  the pie chart remote data binding example and change the web service address so it's hosted in a domain different to the HTML. Obviously, you need to change to JSONP and add the callback function.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vaughn Myers
Top achievements
Rank 1
answered on 22 Jul 2013, 02:52 PM
Response is here: http://www.kendoui.com/forums/kendo-ui-dataviz/sparkline/sparklines-very-erratic-when-there-are-many-in-one-page.aspx

The solution is to call make each call with a different callback name.
Tags
Charts
Asked by
Vaughn Myers
Top achievements
Rank 1
Answers by
Vaughn Myers
Top achievements
Rank 1
Share this question
or