echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] dataZoom.filterMode - should be controllable individually by series OR behave different

Open ob-ARC opened this issue 3 years ago • 0 comments

What problem does this feature solve?

As seen in #17631, with the current options it is not possible to achieve a chart where bars outside the axes are clipped, but lines are still drawn to the axes. Currently, only filterMode="none" allows lines to be drawn up to the axes even if the next datapoint is out of the axis limits. At the same time, "none" will allow bars to be displayed outside the chart area (see screenshots below). I also think the current behaviour is somewhat inconsistent because bars are able to show outside the axis limits, but line segments are indeed clipped when reaching the axes.

grafik

grafik

What does the proposed API look like?

I'd either propose a new filterMode (e.g. "chartArea") which simply does clip anything that visually lies outside the axis bounds (I guess that is what most users would expect anyway), or the ability to set the filterMode per series.

ob-ARC avatar Sep 19 '22 06:09 ob-ARC