nabils Posted April 17, 2008 Report Posted April 17, 2008 How do I reposition the camera on a 3dview for a pie chart by code? I have used a number of WPF chart controls from all your competitors and your control seems to be the best by far. Looking forward to the final release. Thanks
JuanC Posted April 17, 2008 Report Posted April 17, 2008 To change the camera angle you would use the View3D AngleX and AngleY properties. e.g. chart1.View3D.AngleX = 45; Note that we expose AngleX and AngleY and then calculate other camera settings to make sure as much of the scene is visible as possible. You can also create a binding, e.g. to control the angle with a slider <Slider Minimum="-90" Maximum="180" Width="120" Value="{Binding ElementName=chart1, Path=View3D.AngleX}" />Also note that View3D exposes a double property called Perspective, 0 means we use an OrthoGraphicCamera and any number between 15 and 90 will be used as the field of view of a PerspectiveCamera >> and your control seems to be the best by far. Looking forward to the final release We think once our designers prepare the different styles that will ship with the product you will be pleasantly surprised. Regards, JuanC
nabils Posted April 18, 2008 Author Report Posted April 18, 2008 Thanks AngleX and AngleY are working great. However Perspective property in View3D seems to be a bool and not a double. Also the depth property does not have any effect when changing it. I need to be able to zoom in to the chart.
JuanC Posted April 22, 2008 Report Posted April 22, 2008 Our new builds declare this property as double instead of bool. We do not support manual transformations to the camera so I am afraid the only zooming available would be to set the chart.Zoom.Mode to ZoomMode.Magnifier. Regards, JuanC
Recommended Posts
Archived
This topic is now archived and is closed to further replies.