Comments (4)
Looking at this.
from apexcharts.js.
Why you're seeing this:
If you look closely when running these examples under earlier versions you can see that the same effect occurs but only between the new datapoint and the preceding datapoint. The same problem is there but on a smaller scale.
In order to fix several gradient fill issues that produced permanently visible discontinuities in both area and line fills, it was necessary to compute a single enclosing path for each contiguous segment of a series, rather than multiple paths that butt together (one for at each datapoint in the series). The underlying SVG requires this in order to work correctly. For complete series with no missing data this results in a single enclosing path that includes all datapoints, hence you see the whole chart being reanimated, not just the last datapoint.
One conventional approach to fix this (in code) IMO would be:
- the fill animation to be disabled after the initial rendering,
- the chart to be redrawn after the new datapoint is appended but in a window that is one datapoint wider than the visible grid ( the new data is initially off the grid),
- the chart is then scrolled right to left to bring the new datapoint into view,
- the oldest datapoint to then be dropped,
- repeat from (2).
from apexcharts.js.
Just an FYI for others that reach this. If you are in need of a quick fix, reverting back to v3.48.0 works.
See codepen here:
https://codepen.io/jh_codepen/pen/dyEppwg
from apexcharts.js.
from apexcharts.js.
Related Issues (20)
- Feature Request: Enable Interactive Tooltips in ApexCharts
- Irregular timeseries line chart displays vertical line HOT 1
- Incorrect display format for horizontal bar charts when using formatter functions
- Update to 3.49.1 make the browser freeze HOT 1
- Total data label not centered when using a stacked bar chart HOT 1
- how to add more x axis label if type is datetime
- TypeError: Cannot read properties of undefined (reading 'querySelectorAll') HOT 1
- Improper spacing b/n tooltip and axis when inverted tooltip appears HOT 2
- RangeBar not grouping correctly when xaxis type: datetime and horizontal: false
- Area Chart keeps redrawing fill on appendData call HOT 7
- Column chart with datetime on x axis breaks annotation positioning on y axis HOT 1
- 3.49.0 breaks area chart series toggling for series with larger numbers of values HOT 6
- bar100 UI Bug HOT 1
- Multiple Y-Axis sample is not rendering properly HOT 1
- Multiline "Total" breaks after hovering over the donut chart
- I have a problem with big data HOT 1
- gap when stack rounded bar or last bar remain flat when pevious bar value is 0 HOT 1
- Area chart - categories and brush (mini graph)
- 3.49.1 breaks react-apexcharts HOT 1
- 安全漏洞:更新内部 svg.js 文件 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 apexcharts.js.