You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "morgandavidson (via GitHub)" <gi...@apache.org> on 2024/02/21 12:11:27 UTC
[I] How to to prevent markPoint labels overlapping? [echarts]
morgandavidson opened a new issue, #19633:
URL: https://github.com/apache/echarts/issues/19633
### What problem does this feature solve?
For example, in the line chart below, left Y-axis labels are overlapping for Torsica and Mitzerland series
```
var option;
const dataset = [[150, 230, 224, 218, 135, 147, 260], [230, 160, 70, 135, 147, 140, 110], [145, 147, 260, 340, 290, 110, 115]];
const entity = ['Mangolia', 'Mitzerland','Torsica'];
const seriesList = [];
for (const index in dataset) {
const row = dataset[index];
seriesList.push({
type: 'line',
data: row,
name:entity[index],
labelLayout: {moveOverlap: 'shiftY'},
labelLine: {show: true},
endLabel: {
show: true,
formatter: '{a} = {c}'
},
markPoint: {
symbolSize: 0,
label: {
position: 'left',
formatter: (params)=> `${params.value} = ${params.data.coord[1]}`
},
data: [{coord: [0, row[0]], value: entity[index]}]
}
});
}
option = {
xAxis: {
type: 'category',
boundaryGap: false,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value',
offset: -260
},
series: seriesList
};
```
### What does the proposed API look like?
Label overlapping could be prevented with an equivalent of `labelLayout: {moveOverlap: 'shiftY'}` and `labelLine: {show: true}`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] Prevent markPoint labels overlapping [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19633:
URL: https://github.com/apache/echarts/issues/19633#issuecomment-3954759481
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] Prevent markPoint labels overlapping [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19633: Prevent markPoint labels overlapping
URL: https://github.com/apache/echarts/issues/19633
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] Prevent markPoint labels overlapping [echarts]
Posted by "soeasyjx (via GitHub)" <gi...@apache.org>.
soeasyjx commented on issue #19633:
URL: https://github.com/apache/echarts/issues/19633#issuecomment-1962860719
两个离的比较近的markPoint有可能会有部分内容重叠,有办法调整么
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] Prevent markPoint labels overlapping [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19633:
URL: https://github.com/apache/echarts/issues/19633#issuecomment-4000337827
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org