You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/05/18 03:17:23 UTC
[GitHub] [incubator-echarts] xiexiangrui opened a new issue #12650: 折线图 series 数据一致 导致折线重叠
xiexiangrui opened a new issue #12650:
URL: https://github.com/apache/incubator-echarts/issues/12650
### What problem does this feature solve?
option = {
title: {
text: '折线图堆叠'
},
tooltip: {
trigger: 'axis'
},
legend: {
data: ['邮件营销', '联盟广告']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
},
yAxis: {
type: 'value'
},
series: [
{
name: '邮件营销',
type: 'line',
data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: '联盟广告',
type: 'line',
data: [120, 132, 101, 234, 290, 330, 310]
}
]
};
上述代码 ,会导致 两条折线重叠 ,深色覆盖浅色线条
### What does the proposed API look like?
能否提供一个折线的偏移,保证每条线都能显示在页面上
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
----------------------------------------------------------------
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.
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
[GitHub] [incubator-echarts] xiexiangrui commented on issue #12650: 折线图 series 数据一致 导致折线重叠
Posted by GitBox <gi...@apache.org>.
xiexiangrui commented on issue #12650:
URL: https://github.com/apache/incubator-echarts/issues/12650#issuecomment-629926724
> May be you can use `stack`?
Unrelated data, no stack required.
----------------------------------------------------------------
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.
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
[GitHub] [incubator-echarts] 97Yates05 commented on issue #12650: 折线图 series 数据一致 导致折线重叠
Posted by GitBox <gi...@apache.org>.
97Yates05 commented on issue #12650:
URL: https://github.com/apache/incubator-echarts/issues/12650#issuecomment-740421402
> 既然数据一样,显示的折线当然应该叠在一起的,不然就是误导。不确定这么做的目的是什么?如果只是为了看清有两个系列的话,似乎有点舍本求末。
> 比如是否可以用 `areaStyle` 为每个系列增加一个半透明比较淡的背景色,比如系列颜色是红色和黄色的,那么叠加后背景色是橙色的,用户能在一定程度上知道这是两个系列叠在一起的效果。
> 如果实在非要用偏移来解决问题,那么你可以自己判断一下数据,如果数据完全一样,就给其中的一个数据增加一点点值,然后利用 label formatter 和 tooltip formatter 来控制显示的数据仍然等于原来的数据。
请问如何重叠的时候显示浅色那条线
----------------------------------------------------------------
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.
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
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12650: 折线图 series 数据一致 导致折线重叠
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12650:
URL: https://github.com/apache/incubator-echarts/issues/12650#issuecomment-629923259
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
Have a nice day! 🍵
----------------------------------------------------------------
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.
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
[GitHub] [incubator-echarts] susiwen8 commented on issue #12650: 折线图 series 数据一致 导致折线重叠
Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #12650:
URL: https://github.com/apache/incubator-echarts/issues/12650#issuecomment-629925017
May be you can use `stack`?
----------------------------------------------------------------
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.
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
[GitHub] [incubator-echarts] Ovilia commented on issue #12650: 折线图 series 数据一致 导致折线重叠
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12650:
URL: https://github.com/apache/incubator-echarts/issues/12650#issuecomment-631222520
既然数据一样,显示的折线当然应该叠在一起的,不然就是误导。不确定这么做的目的是什么?如果只是为了看清有两个系列的话,似乎有点舍本求末。
比如是否可以用 `areaStyle` 为每个系列增加一个半透明比较淡的背景色,比如系列颜色是红色和黄色的,那么叠加后背景色是橙色的,用户能在一定程度上知道这是两个系列叠在一起的效果。
如果实在非要用偏移来解决问题,那么你可以自己判断一下数据,如果数据完全一样,就给其中的一个数据增加一点点值,然后利用 label formatter 和 tooltip formatter 来控制显示的数据仍然等于原来的数据。
----------------------------------------------------------------
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.
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