How to fitview view3D?

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

ehdrnsep
Posts: 48
Joined: Mon Jan 12, 2015 6:52 am

How to fitview view3D?

Post by ehdrnsep » Wed Jan 06, 2016 2:42 am

I'm looking for something that operates as "ViewXY.FitView()".
It impossible in "View3D"?

ehdrnsep
Posts: 48
Joined: Mon Jan 12, 2015 6:52 am

Re: How to fitview view3D?

Post by ehdrnsep » Wed Jan 06, 2016 5:02 am

This code was solved with. :)

Code: Select all

this.chart.BeginUpdate();
this.series.Points = points;

PointDouble3D min, max;
this.series.GetMinMaxValues(out min, out max);
this.chart.View3D.XAxisPrimary3D.Minimum = min.X;
this.chart.View3D.XAxisPrimary3D.Maximum = max.X;
this.chart.View3D.YAxisPrimary3D.Minimum = min.Y;
this.chart.View3D.YAxisPrimary3D.Maximum = max.Y;
this.chart.View3D.ZAxisPrimary3D.Minimum = min.Z;
this.chart.View3D.ZAxisPrimary3D.Maximum = max.Z;

this.chart.EndUpdate();