Prevent value labels overlapping between series
See original GitHub issueDescription
When I show value labels for two series, they might overlap. Can they be separated better?
Implementation
We can avoid overlap IN series by using this config in echarts:
labelLayout: function (params) {
return {
x: params.rect.x,
moveOverlap: 'shiftY'
};
},
^ not actually sure why x:
is needed in there it seems like a bug.
Before
After
Issue Analytics
- State:
- Created a year ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Prevent Overlapping Data Labels in Excel Charts - Peltier Tech
To avoid horizontal overlapping, you need to compare each label's left plus width to the next label's left to determine whether an overlap...
Read more >Manage Overlapping Data Labels | FlexChart | ComponentOne
FlexChart provides an option to show or hide the overlapped data labels by setting the Overlapping property of DataLabel class. This property accepts...
Read more >How can I prevent the labels of my line chart from overlapping?
To prevent overlapping labels in your series or to display labels of one series above the line, you can proceed as follows. You...
Read more >How to: Avoid Overlapping of Series Labels | WinForms Controls
XtraCharts can help to avoid this, by applying an overlap resolving algorithm to series labels. Then, label overlap is auto-detected, ...
Read more >How to prevent text labels from overlapping in R with ggplot2 ...
A challenge of adding labels to a plot is how to prevent the labels from overlapping with each other. Thankfully, the ggrepel R...
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
@TuringLovesDeathMetal iirc echarts only avoids overlap of labels from the same series. It doesn’t calculate overlap between series like in that screenshot 😢
Yep