Bars overlap each other when I use NDateTimeScaleConfigurator.
Can I set the width of datetime bar series like NOrdinalScaleConfigurator?
Or is there any other way to set width?
thanks a lot.
sample:
NCartesianChart m_Chart = (NCartesianChart)nChartControl1.Charts[0];
m_Chart.BoundsMode = BoundsMode.Stretch;
NBarSeries bar = (NBarSeries)m_Chart.Series.Add(SeriesType.Bar);
bar.Name = "NDateTimeScaleConfigurator";
bar.DataLabelStyle.Visible = false;
bar.UseXValues = true;
m_Chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = new NDateTimeScaleConfigurator();
Random random = new Random();
for (int i = 0; i < 200; i++)
{
bar.Values.Add(random.Next(10, 15));
bar.XValues.Add(DateTime.Today.AddDays(i).ToOADate());
}
//bar.WidthPercent = ?? <== It doesn't work
nChartControl1.Refresh();