c# - How to reference chart ID that is stored in string? -


i passing string variable chartname contains id of chart trying reference. contents of string chart1, chart2, chart3. how can pull chart id out of string can use add data points chart?

the following code not work since chartname string variable , there no chart id named chartname:

chartname.series["series1"].points.add(series1data);     

my goal perform this:

"contents of chartname".series["series1"].points.add(series1data); 

which should like:

chart1.series["series1"].points.add(series1data); 

(this.findcontrol(chartname) chart).series used resolve this.

thank you, sergey litvinov!


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -