Hi Joel,
The following code snippet shows how to create a chart that has the same aspect as the outer control:
' Define the chart control (place holder for the graph)
' Define the graph and set its parameters
NChartControl1.Panels.Clear()
Dim fChart As New NCartesianChart()
NChartControl1.Panels.Add(fChart)
fChart.Series.Clear()
fChart.Enable3D = True
fChart.Projection.SetPredefinedProjection(PredefinedProjection.OrthogonalTop)
fChart.LightModel.SetPredefinedLightModel(PredefinedLightModel.None)
fChart.BackgroundFillStyle = New NColorFillStyle(Color.LightBlue) ' For screenshot on Nevron Forum only
fChart.DockMode = PanelDockMode.Fill
fChart.Location = New NPointL(0, 0)
fChart.BoundsMode = BoundsMode.Fit
fChart.Padding = New NMarginsL(0)
fChart.Margins = New NMarginsL(0)
For Each wall As NChartWall In fChart.Walls
'wall.Visible = False ' This is commentend to show the diffrence between screenshots
wall.Width = 0
Next
Dim aspect As Double = NChartControl1.Width / NChartControl1.Height
fChart.Width = aspect * 50
fChart.Depth = 50
fChart.Axis(StandardAxis.Depth).ScaleConfigurator.Title.Text = "Depth"
For Each axis As NCartesianAxis In fChart.Axes
axis.Visible = False ' This is also commented only for the screenshot
Next
The effect is that it fills the whole chart control area. Let us know if you meet any problems or have any questions.
Best Regards,
Nevron Support Team