Incubator-echarts: bug: clipping of lines series with dataZoom

Created on 26 Jun 2019  ·  16Comments  ·  Source: apache/incubator-echarts

Version

4.2.1

Reproduction link

https://gallery.echartsjs.com/editor.html?c=xCb_Xl7Zz9&comment=0

Steps to reproduce

放大后超出坐标轴的部分不会裁剪

What is expected?

超出坐标轴的部分应该裁剪

What is actually happening?

不会裁剪

bug dataZoom

All 16 comments

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 and chart option to get the answer.

Have a nice day! 🍵

有人帮我看看吗?提了几个类似的问题都给我关闭了,说我提的是相同的问题,你倒是告诉我答案呀!!!

因为我也不知道答案

那你能给反馈下吗,我查过很多别人以前提的问题,散点图也有类似的bug,是不是除了线图只要使用笛卡尔坐标系都会有这个问题呀,能否告诉我在什么时候修复这个问题吗?我这个是国家电网的项目会用到你们的库

我觉得可能是datazoom的问题,不是坐标系的问题,具体还得排查。什么时候修复就不清楚了。着急用的话个人建议先不要使用datazoom。

你这么说就确定是bug喽?如果不使用datazoom怎么缩放呀,我刚接触这个库不久,能否指点下?

@Ovilia 你能指点下吗?

@Ovilia 大神出来指点下呗,我给你写邮件也没回我 :(
或者告诉我计划什么时候修复这个bug也行呀,让我心里有个数。多谢

这个是 bug,比较难修,跟 #10646 是一样的问题。
修复的基本想法是,对 grid 区域提供一个 clip 操作,如果图形完全超出了 grid 范围,则完全不绘制(而不是用 clipPath 裁剪掉),如果一半在里面一半在外面,则 clipPath 一下。

@Ovilia 请问这个bug在什么时候会修复呀?下个版本吗?有没有具体修复日期和计划?

@Ovilia 大神能否告诉我啥时候修复这个问题吗?多谢!

@susiwen8 请问可以帮我问问什么时候修复这个不裁剪的bug吗 这关系到我们的项目是否使用echarts 谢谢

@eniaclyl 暂时没法安排排期,如果紧急可以自行用 hack 的方式解决

@Ovilia 请问能说说具体怎么做吗,或者给个例子也行,我是搞c++的不太懂web,我看github上很多人也问这个问题,你留个方法也方便以后的人使用,多谢了

Added clip option for lines series in the commit https://github.com/apache/incubator-echarts/commit/94dfc9284f12cba56b7524dcf60776d0c39dbe79 . It will be included in version 4.4.0

Here is the screenshot after fixed.
image

@pissang 多谢

Was this page helpful?
0 / 5 - 0 ratings