You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by Per Franck <pe...@gmail.com> on 2021/11/08 18:23:29 UTC

line chart gaps with points outside chart

Is there a way to avoid gaps in data when a point is outside the chart?

e.g. I have this chart

[image: image.png]
when i zoom in a tad, i get this.
[image: image.png]

Re: line chart gaps with points outside chart

Posted by Yi Shen <sh...@gmail.com>.
Hi,

The key is to set filterModel to 'none' in dataZoom and set clip to true in
series.

Check the example
https://echarts.apache.org/examples/zh/editor.html?c=line-function


Regards

On Tue, Nov 9, 2021 at 2:23 AM Per Franck <pe...@gmail.com> wrote:

> Is there a way to avoid gaps in data when a point is outside the chart?
>
> e.g. I have this chart
>
> [image: image.png]
> when i zoom in a tad, i get this.
> [image: image.png]
>
>

-- 
Yi Shen
Apache ECharts PMC