Data zoom (use NDataZoomTool + NOffsetTool), show selected area in another window


Data zoom (use NDataZoomTool + NOffsetTool), show selected area in...
Author
Message
Alex Art
Alex Art
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1
I'm happy with NDataZoomTool , but I want also to be able to do the following

1. Is it possible to combine NDataZoomTool + NOffsetTool(or in another way), so I want to be able to zoom in data and at the same time move screen to select data which are close to current selected subset

2. When I have NDataZoomTool , I want to be able dig in data using mouse wheel (when I move wheel down, it will behave as if I selected smaller area with NDataZoomTool and moving wheel up will move me step back showing previous subset of data)

3. I want to show current selected subset of data (like small chart in additional window where I show data "" + selected area)

Thanks in advance!

Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Ereona,

The following code shows how to center the axis when its scrolling to some value (in this case 30):

   double xValue = 30;
   NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];

   NNumericAxisPagingView view = chart.Axis(StandardAxis.PrimaryX).PagingView as NNumericAxisPagingView;

   if (view.Enabled)
   {
    double length = view.Length;
    double begin = xValue - length / 2.0;
    double end = xValue + length / 2.0;
    
    view.ZoomIn(new NRange1DD(begin, end), 0.001);
    nChartControl1.Refresh();
   }

Note that you have to check whether the current paging view is enabled and ZoomIn afterwards.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search