Hi Anshul,
Yes. You need to deselect a chart value in order to select another and to trigger get value.
I could think of 2 workarounds -
1. Triggering a data reload along with Chart selection event.
2. Hiding and Showing the chart.
If Chart is bound to DS_1 and On Select event of chart is as below:
DS_2.setFilter(dimension, CHART_1.getSelectedMember(dimension));
Option 1:
Add the below script to it:
DS_1.reloadData();
This ensures that the data is reloaded and hence Chart is re-rendered + selection is removed from the chart. But this has a fallback that all components attached to DS_1 will be re-rendered.
Option 2:
Add the below script to it:
CHART_1.setVisible(false);
CHART_1.setVisible(true);
This ensures that the chart is hidden and shown again and hence selection is removed from the chart.
I prefer this option.
Regards,
Bharath