TrackBall not working


https://www.nevron.com/Forum/Topic12519.aspx
Print Topic | Close Window

By Eli Gazit - 6 Years Ago
Hi,
I have a 3d scatter chart and I'm trying to enable the trackball/zoom/move interactivity elements.
based on the sample, I should set
ChartControl1.Controller.Tools.Add(new NTrackballTool());

this does not work.
what am I missing?

By Nevron Support - 6 Years Ago
Hi Eli,
You also need to add a tool which designates the current chart - so the code should look like:

nChartControl1.Controller.Tools.Add(new NPanelSelectorTool());
nChartControl1.Controller.Tools.Add(new NTrackballTool());

The reason for this is that since the chart supports rotation (trackball) on multiple charts the first tool selects the chart at the current mouse position and the second actually performs the rotation. Hope this helps - let us know if you have any questions or meet any problems.