Hi,
I would like to align a bar on its left side, to have the gap on the other side, instead of having a gap on each side. I couldn't find the property or method that could change the alignement of the bars. See the picture of what I'm looking for.
You need to set the bar width to 100% and then enable view range inflate for the X axis - the code below introduces ten point inflate to the right:
NChart chart = nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();bar.Values.Add(10);bar.InflateMargins = false;bar.WidthPercent = 100;chart.Series.Add(bar);
NOrdinalScaleConfigurator scale = new NOrdinalScaleConfigurator();scale.InflateViewRangeBegin = false;scale.InflateViewRangeEnd = true;scale.ViewRangeInflateMode = ScaleViewRangeInflateMode.Absolute;
scale.AbsoluteInflate = new NRange1DL(0, 15);chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = scale;
Hope this helps - let me know if you meet any problems.
Best regards,Bob