Profile Picture

How to add zoom functionality on chart when finger pinch to zoom

Posted By shweta jain 4 Years Ago

How to add zoom functionality on chart when finger pinch to zoom

Author
Message
Nevron Support
Posted 4 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 Shweta,
The following code shows how to zoom in to a specified range on a particular axis:
NChart chart = nChartControl1.Charts[0];

NBarSeries bar = new NBarSeries();
chart.Series.Add(bar);

bar.DataLabelStyle.Visible = false;

bar.Values.Add(10);
bar.Values.Add(20);
bar.Values.Add(30);

// make sure all internal values are updated
nChartControl1.RecalcLayout();

// zoom in
NNumericAxisPagingView view = new NNumericAxisPagingView();
chart.Axis(StandardAxis.PrimaryX).PagingView = view;
view.ZoomIn(new NRange1DD(0.5, 1.5), 0);

Zooming this way (instead of using the NRangeAxisView) ensures you can also activate scrolling/panning later. We hope this helps - let us know if you have any questions.


Best Regards,
Nevron Support Team



shweta jain
Posted 4 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 16, Visits: 192
Hello,
 Is it possible to control zoom control like by passing zoom in percentage on specified value?
Can u Please provide some code/reference related to how to implement custom zoom on chart?

Nevron Support
Posted 4 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 Sweta,

The control does not have touch support for interactivity operations yet. You generally have to implement custom zooming in response to touch events.

Best Regards,
Nevron Support Team



shweta jain
Question Posted 4 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 16, Visits: 192
Hello,

Is Nevron chart support finger touch interactivity ?.
I want to add zoom functionality on finger pinch to zoom. Is it possible?
Please suggest some idea for How can I implement this zoom on finger pinch on Nevron chart.



Similar Topics


Reading This Topic