Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
Bars overlap each other when I use NDateTimeScaleConfigurator
Bars overlap each other when I use NDateTimeScaleConfigurator
Post Reply
Bars overlap each other when I use NDateTimeScaleConfigurator
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
inhyuk son
inhyuk son
posted 14 Years Ago
ANSWER
Topic Details
Group: Forum Members
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
(
61 views,
42.00 KB
)
Reply
Like
0
Nevron Support
Nevron Support
posted 14 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
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
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search