Comments (7)
I added a 'refresh' button so I can re-load a data set without panning/zooming the chart and make sure I'm loading the same data each time.
Clicking the refresh button does not throw the error above if I keep the cursor outside the chart. However if I click the refresh button and move my cursor around over the chart the error is thrown.
I save a reference to each series in a map (this.series) the first time I add it to the chart and then update the data with
this.series[seriesName].data.setAll(newData);
from amcharts5.
It would be best if you could create a codepen where this issue is reproduced, it would help to figure out the problem - thanks!
from amcharts5.
I was able to reproduce this in JSFiddle using a setTimeout to mock the API call.
https://jsfiddle.net/samkristofftulu/qwrgx7mv/65/
Here is a video demonstrating the issue.
https://share.vidyard.com/watch/LJo4navHWFRv1XU2gsRYsN?
In this example the error is only thrown once per refresh, but when the time range of the data changes or there are multiple series it gets worse and will quickly lock up the chart. I'm working on an example the reproduces that.
from amcharts5.
I confirm the bug - we fixed it internally and the issue will be solved with next release. Thanks a lot for helping to find it.
from amcharts5.
Hey zerio, I'm happy to help.
EDIT: Answering my own question below - I disabled the cursor before loading new data and enabled after the load is complete. This prevents the error above and prevents the charts from locking up.
Is there a work around or patch I can try to see if this also prevents my charts from locking up (not sure if this is just a red herring).
Thanks!
from amcharts5.
BTW, we'll let you know here when the version with a fix is available.
from amcharts5.
Fixed in 5.0.1.
[5.0.1] - 2021-11-05
Fixed
XYChart
with panning enabled an no Animated theme was flickering while panning.- JS error could occur sometimes if data was updated while cursor was moving over the chart.
Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.
from amcharts5.
Related Issues (20)
- adding connect : false results in the grouped series disappearing upon zooming. HOT 2
- States not setting up for each column in columnSeries HOT 1
- Facing issues with series.data.setAll() HOT 4
- Add current volume label to stock chart HOT 2
- Hierarchy charts - Tree Map - Data processor will work for one level ? HOT 3
- Data point possible accessibilities HOT 6
- Flickering effect occurring while disposing series to add new series with new data HOT 2
- Adding button with tooltip of valueAxis stock chart HOT 4
- Increase the sensitivity of the panining AxisRendererY HOT 1
- Disable PanY auto resetting for valueAxis amcharts Stock HOT 2
- Can we add custom drawing tool in the same way as we add custom indicators HOT 3
- Chart specific possible accessibilities HOT 7
- Column series getting clustered after adding more data HOT 8
- Legend label oversizedBehaviour without maxWidth HOT 4
- Can't add tooltip on hover on X axis item HOT 3
- minBulletDistance not working for a Gantt chart with CategoryAxis and DateAxis HOT 3
- Violin Chart Possible with amcharts5? HOT 2
- How to fire the drawing tool on the button active. HOT 8
- Enhancement : Drawing should get extend on lazy loading.
- The word cloud graphic presents the blurred emojis in the Firefox browser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amcharts5.