Hello,
Thanks for the answer, unfortunately this is not completely that, a bit better though but not perfect yet.
First this command is not correct:
fChart.DockMode = PanelDockMode.Fill
I had to replace it with this:
fChart.Dock = DockStyle.Fill
I understand that instead of placing the chart in the NChartControl1.Charts we put it in its Panels list, but I am have a few questions regarding the other changes :
1) Why are we using the value 50 in the chart width and depth ?
2) What is the point of naming the scale configurator title ? Especially if we are going to hide it after ?
Here is the modified code corresponding to the attached screenshot :
' Define the chart control (place holder for the graph)
fChartControl = New NChartControl()
fChartControl.Charts.Clear()
fChartControl.Panels.Clear()
fChartControl.Name = String.Format("chartControl_{0}", fSubPile.ToString())
fChartControl.Dock = DockStyle.Fill
fChartControl.Margin = New Padding(0)
fChartControl.Padding = New Padding(0)
fChartControl.BackgroundStyle.FrameStyle.Visible = False
AddHandler fChartControl.Click, AddressOf Chart_Click
AddHandler fChartControl.MouseDown, AddressOf Chart_MouseDown
' Define the graph and set its parameters
fChart = New NCartesianChart()
fChartControl.Panels.Add(fChart)
fChart.Series.Clear()
fChart.Enable3D = True
fChart.Projection.SetPredefinedProjection(PredefinedProjection.OrthogonalTop)
fChart.LightModel.SetPredefinedLightModel(PredefinedLightModel.None)
fChart.BackgroundFillStyle = New NColorFillStyle(Color.Yellow)
fChart.Dock = DockStyle.Fill 'There is no DockMode property in the NCartesianChart class. Incorrect code: 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
wall.Width = 0
Next
Dim aspect As Double = fChartControl.Width / fChartControl.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
Next