plot - How to dynamically create multiple charts on one User Control -


i created user control , have graph drawn on it. problem need multiple channels in sync. adding control , adding plot each control. need 9 channels, , i'd able have user determine how many channels using 1 control.

i thought make array below keeps crashing:

readonly plotarea[] linegrapharea = new  plotarea[2];  this.linegrapharea[0].width = this.wrapperplot.width - 100; this.linegrapharea[0].height = this.wrapperplot.height - 2; this.linegrapharea[0].top = this.wrapperplot.top + 2; this.linegrapharea[0].left = this.wrapperplot.left + 6; this.linegrapharea[0].backcolor = backgroundcolor; this.controls.add(this.linegrapharea[0]); 

i know this:

readonly plotarea linegrapharea1 = new  plotarea(); readonly plotarea linegrapharea2 = new  plotarea(); readonly plotarea linegrapharea3 = new  plotarea(); 

but i'm sure there's got easier more efficient way of doing this.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -