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

Re: Assigning a Data Source to a Chart via JavaScript

$
0
0

I ran into the same problem.  You can't dynamically switch DataSources for a chart, however, you can re-assign a DataSource to a different query.

 

 

I have a chart assigned to DS_1:

Capture2.PNG

 

On startup, I need to check a flag, and use a different query based on the value of the flag.

 

Since I can't dynamically switch the DataSource for the chart, I simply switch the query that feeds the DataSource like this:
Capture.PNG

 

I hope this helps.


Viewing all articles
Browse latest Browse all 9024

Trending Articles



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