jQWidgets Forums
jQuery UI Widgets › Forums › Chart › Errors when toggling a series
Tagged: jqxChart, series toggle
This topic contains 3 replies, has 2 voices, and was last updated by Raithyn 10 years, 8 months ago.
-
Author
-
If a chart is updating/refreshing and a series is toggled on/off at the same time, the following errors are thrown:
Uncaught TypeError: Cannot read property ‘0’ of undefined jqxchart.js:7
a.extend._getColumnOffsets jqxchart.js:7
a.extend._animateColumns jqxchart.js:7
a.extend._renderColumnSeries jqxchart.js:7
a.extend._render jqxchart.js:7
a.extend._internalRefresh jqxchart.js:7
a.extend.update jqxchart.js:7
a.extend._toggleSerie jqxchart.js:7
(anonymous function) jqxchart.js:7
x.event.dispatch jquery-1.10.2.min.js:5
x.event.add.v.handle jquery-1.10.2.min.js:5When the errors are thrown, jqxchart.js will start acting incorrectly (effects vary). This behavior will carry over to any other charts on the page. I cannot get the function to successfully restart without reloading the page.
This bug can be seen fairly easily duplicated in the jqxChart Updates Performance Demo on your site.
Do you have a workaround for these errors or a way to refresh just the jqxchart function without reloading the entire page?
Thanks,
raithynOkay, better formatting idea for those errors since all the extra spacing disappeared when I hit “Submit”:
Uncaught TypeError: Cannot read property ’0′ of undefined ____ jqxchart.js:7
a.extend._getColumnOffsets ___________________________________ jqxchart.js:7
a.extend._animateColumns _____________________________________ jqxchart.js:7
a.extend._renderColumnSeries _________________________________ jqxchart.js:7
a.extend._render _____________________________________________ jqxchart.js:7
a.extend._internalRefresh ____________________________________ jqxchart.js:7
a.extend.update ______________________________________________ jqxchart.js:7
a.extend._toggleSerie ________________________________________ jqxchart.js:7
(anonymous function) _________________________________________ jqxchart.js:7
x.event.dispatch ____________________________________ jquery-1.10.2.min.js:5
x.event.add.v.handle ________________________________ jquery-1.10.2.min.js:5Hi Raithyn,
How can we reproduce such behavior with our online demo?
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter,
If I toggle any of the three series by clicking the legend entry a few times, then the errors will be thrown, that series will disappear, and the legend will become unresponsive. The toggle has to be timed right compared to the update so I usually have to click a few times to make it happen.
-
AuthorPosts
You must be logged in to reply to this topic.