Hi,

If you call chart.setOption when data updates, the view should always get
updated because the position of the data is relative to each other, rather
than being absolute. So I don't think this is possible.

Thanks

*Ovilia*


On Fri, Jun 16, 2023 at 4:37 AM Dan Kortschak <d...@kortschak.io.invalid>
wrote:

> Hi,
>
> I'm using a graph visualisation similar to the examples here[1]. The
> page dynamically fetches data from the server at intervals, re-
> rendering the graph. When this happens it is possible for the graph to
> gain momentum and can drift out of the viewable area of the canvas.
> This makes it impossible to regain until a new polling event or by
> manually reloading the page since the grab handle (this appears to be
> the area of the rect containing the graph ndes) is not visible.
>
> Is there a way to make the graph be constrained to within the canvas'
> view port unless being zoomed or dragged?
>
> thanks
>
> [1]
> https://echarts.apache.org/examples/en/editor.html?c=graph-label-overlap
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
> For additional commands, e-mail: dev-h...@echarts.apache.org
>
>

Reply via email to