You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] How to use single visualmap controller to select multiple series with 2D dataset source #20662
To visual map colors to all bars in the demo, we have to add the same visualmap for each series.
But every visualMap has their own controller ...
Is there any way to show only one controller and control all visualmaps/bars?
Or is there other way to add only one visualMap config for all series?
Current Behavior
Multiple series need multiple but same visualmaps config.
Each visualmap config brings it's own controller
changed the title [-][Bug] How to use single visualmap controller to select multiple serires with 2D dataset source [/-][+][Bug] How to use single visualmap controller to select multiple serires with 2D dataset source[/+]on Jan 8, 2025
changed the title [-][Bug] How to use single visualmap controller to select multiple serires with 2D dataset source[/-][+][Bug] How to use single visualmap controller to select multiple series with 2D dataset source [/+]on Jan 8, 2025
Yes,It doesn't look possible on current config.
The result of your first solution(using the same visualMap dimension for all series) is wrong.
The other solutions do work, but they reqiure much refactoring and splitted data may not be suitable for other uses (e.g. stack column but tooltip to show all stacked datas in the same category)
My workaround is to add the same visualmap for every series, but only show the first visualmap controller.
When selected changes, call setOption to sync the selected to all visualmaps.
The problem is that I still can't find a way to sync the hoverLink since it doesn't emit events.
Activity
[-][Bug] How to use single visualmap controller to select multiple serires with 2D dataset source [/-][+][Bug] How to use single visualmap controller to select multiple serires with 2D dataset source[/+][-][Bug] How to use single visualmap controller to select multiple serires with 2D dataset source[/-][+][Bug] How to use single visualmap controller to select multiple series with 2D dataset source [/+]MatthiasMert commentedon Jan 8, 2025
I think if you want to specify different dimensions for each series it is not possible while using one dataset.
Possible solutions are
Justin-ZS commentedon Jan 9, 2025
Yes,It doesn't look possible on current config.
The result of your first solution(using the same visualMap dimension for all series) is wrong.
The other solutions do work, but they reqiure much refactoring and splitted data may not be suitable for other uses (e.g. stack column but tooltip to show all stacked datas in the same category)
My workaround is to add the same visualmap for every series, but only show the first visualmap controller.
When
selectedchanges, callsetOptionto sync theselectedto all visualmaps.The problem is that I still can't find a way to sync the
hoverLinksince it doesn't emit events.