Hi, Have you tried with echarts.connect? That should automatically sync multiple charts.
Checkout https://echarts.apache.org/en/api.html#echarts.connect Thanks *Ovilia* On Fri, Oct 25, 2024 at 12:15 PM James Kelly <ja...@siftstack.com> wrote: > Hi, > > I've inherited a complex echarts implementation and am adding some new > features. > > I'm trying to find a way to sync multiple charts on a page. I've > successfully synced the zoom by using the datazoom event and actions, but > I'm struggling to set the x axis pointer across the charts. > > I've tried dispatching both the 'axisPointer' and 'updateAxisPointer' > actions with no success. I had luck using a 'showTip' action, but we don't > actually want the tooltips on and that doesn't work if they're off. I've > also tried using setOptions with markArea, but that draws _behind_ the data > no matter what z values I gave and I need to draw the axis on top, like the > cursor. > > Does anyone have any suggestions? > > Thanks for your help, > James >