amcharts5 icon indicating copy to clipboard operation
amcharts5 copied to clipboard

Synchronize cursors between multiple chart based on date

Open ptorrent opened this issue 2 years ago • 1 comments

Hello !

Is there a way to synchronize cursor between multiple chart ?

This is what I'm using as cursor :

var cursor = chart.set("cursor", am5xy.XYCursor.new(root, {
	xAxis: xAcis
}));
cursor.lineY.set("visible", false);

Thanks for your help

ptorrent avatar Oct 03 '22 11:10 ptorrent

Edited answer, it was a wrong suggestion before.

To sync cursors, you set syncWidth setting of a cursor with array of other cursors to sync with:

cursor1.set("syncWith", [cursor2, cursor3])

This will do all the syncing.

https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/#syncing-cursors

zeroin avatar Oct 03 '22 12:10 zeroin

This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.

github-actions[bot] avatar Nov 10 '22 00:11 github-actions[bot]