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

Re: Overwrite Chart Content

$
0
0

Hi,

 

You can first give the line chart and the bar chart an ID respectively, e.g., "line" and "bar", and put both on the page. By default, use jQuery("#bar").children().hide(); to hide the bar chart. Then you can write logic in the radio button function.

 

When you choose RD1, do the following:

jQuery("#line").children().show();

jQuery("#bar").children().hide();

 

When you choose RD2, do the following:

jQuery("#line").children().hide();

jQuery("#bar").children().show();

 

Best regards,

Wenjun


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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