Hi, Guys!
I am sorry. But there is a problem with drawing ‘Grid Border’ using ‘Back Wall Border’
1) If I hide grid lines all works fine.
Here is the code:
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(21);
chart.Series.Add(bar);
// Grid Border
NChartWall backWall = chart.Wall(ChartWallType.Back);
backWall.BorderStyle.Color = Color.Black;
// Hide grid lines
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator.MajorGridStyle.SetShowAtWall(ChartWallType.Back, false);
chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator.MajorGridStyle.SetShowAtWall(ChartWallType.Back, false);
And you can see the result at picture gridBorder1.
2) But I need to have greed line enabled.
Here is the code:
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(21);
chart.Series.Add(bar);
// Grid Border
NChartWall backWall = chart.Wall(ChartWallType.Back);
backWall.BorderStyle.Color = Color.Black;
// Show grid lines
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator.MajorGridStyle.SetShowAtWall(ChartWallType.Back, true);
chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator.MajorGridStyle.SetShowAtWall(ChartWallType.Back, true);
And as a result the latest grid line overlaps grid border line.
You can see the result at picture gridBorder2.
Do you know another way how to draw grid border?
Best Regards,
Zonder.