Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8501

Re: BO Design studio Chart Component issue ...!!

$
0
0

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


Viewing all articles
Browse latest Browse all 8501

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>