ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Rotation of 3d surface charts
Posted by Joe on Mar-28-2014 22:27
Are the 3d surface charts for .NET capable of online rotation by mouse action? Or do I have to use scrollbars for rotation?

  Re: Rotation of 3d surface charts
Posted by Peter Kwan on Mar-29-2014 03:10
Hi Joe,

When you create a 3D surface chart, you can configure its rotation by using the
ThreeDChart.setViewAngle API.

You can control the rotation interactively using any method you like. For example, if you
want to control it using mouse action, in your mouse event handlers, simply redraw the
chart with the updated angle. If you want to use scrollbars for rotation, in your scrollbar
event handler, simply redraw the chart using the desired angle (computed the scrollbar
position).

Note that ChartDirector does not hard coded anything into the scrollbar or the mouse event
handlers. You would need to put code in the event handlers to perform the action you
want.

Should you need further information, please feel free to contact me.

Regards
Peter Kwan