Profile Picture

Bars overlap each other when I use NDateTimeScaleConfigurator

Posted By inhyuk son 13 Years Ago

Bars overlap each other when I use NDateTimeScaleConfigurator

Author
Message
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hello,

When the UseXValues property of the bar series is set to true the WidthPercent property is not regarded, you have to use the BarWidth property.


Best Regards,
Nevron Support Team



inhyuk son
Posted 13 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 21, Visits: 1
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();

Attachments
datetime bar width.GIF (51 views, 42.00 KB)


Similar Topics


Reading This Topic