Profile Picture

Using NTrackBar Values to dynamically/interactively update graph axes

Posted By Eyon Butterworth 3 Years Ago

Using NTrackBar Values to dynamically/interactively update graph axes

Author
Message
Eyon Butterworth
Question Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 1, Visits: 9
I'm new to programming.  Well, object based programming and the concepts I have to get used to.

What I am trying to do is basically update the graph view/axes dynamically and interactively by using NTrackBar.  I'm using 4 trackbars, two per axis, that will allow the user to dynamically change the graph view.  These values are displayed in a textbox for the user. 

https://www.nevron.com/forum/uploads/images/15da3b8a-05dd-423b-ab61-5812.jpg

How does one dynamically update the range view using the endpoint values displayed in textboxes?  Any help for this newbie would be greatly appreciated.

Thanks
Eyon





Nevron Support
Posted 3 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Eyon,

To specify an axis range you must change the axis view to range axis view - for exampe:

NChart chart = nChartControl1.Charts[0];
chart.Axis(StandardAxis.PrimaryY).View = new NRangeAxisView(new NRange1DD(0, 100), true, true);
nChartControl1.Refresh();

will limit the Y axis to show values in the range 0 - 100. Is this the functionality you're looking for? - or maybe you want to allow the user to also use scrolling / panning - if this is the case just let us know and we'll post code to accomplish this.

Let us know if you have any questions or meet any problems.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic