Charts are being duplicated
See original GitHub issueEnv:
"apexcharts": "^3.22.2",
"vue": "^3.0.2",
"vue3-apexcharts": "^1.1.1"
My options:
{
chart: {
height: 590,
type: "area",
},
dataLabels: {
enabled: false,
},
stroke: {
curve: "smooth",
},
xaxis: {
labels: {
showDuplicates: false,
hideOverlappingLabels: true,
offsetY: 20,
style: {
colors: "#979797",
},
},
},
}
Template:
<apexchart type="area" :height="590" :options="options" :series="series" />
Result:
Note: when I change a screen resolution, the duplicated one disappears
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:28 (3 by maintainers)
Top Results From Across the Web
Chart Duplicates because of useEffect re-render
In my child component I have a dependency array that re-renders every time color is changed from parent i.e ( props.backgroundColor ). Now...
Read more >FAQ-1088 Why are there duplicated points on my box chart?
It is caused by that both data points and outliers habe been turned on. it will thus make those outlier points be plotted...
Read more >Pie chart showing duplicates - Power Platform Community
Solved: Good Morning Community, I have been working on a pie chart in my app that is being used as a time keeper...
Read more >Duplicate Chart - Workiva Support
You should be able to duplicate a Chart within a Document, though you don't get the same selectors you do in a Presentation....
Read more >Duplicating Charts | Kintone Documentation Site
On the View screen of the app, select a graph to be copied in "Graphs". Image. Click the Create Graph button Column chart...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will fix the issue for now
And if you’re using the Composition API (ie
<script setup>
syntax) useonBeforeMount
instead ofonMounted
.