Custom Axis Labels
-
Saturday, August 15, 2009 6:22 AMI'm creating a chart with one series (column). The X Axis is DateTime. I'm plotting a week of data, data points are hourly. The default X Axis I have marking at an interval of 6 hours. Under it I want to mark each day, so:0 6 12 18 0 6 12 18 010th 11thI'm trying to use the following line, (Main is my chart area)Main.AxisX.CustomLabels.Add(1, DateTimeIntervalType.Days, "d", 1, LabelMarkStyle.SideMark);but nothing is appearing.. What am I doing wrong?
All Replies
-
Wednesday, September 09, 2009 6:13 PM
Hi,
I usually add custom labels different way. It worked for me when I did something like this:
CustomLabel customLabel = new CustomLabel(); customLabel.Text = "hello"; customLabel.RowIndex = 1; customLabel.FromPosition = new DateTime(2007, 1, 10).ToOADate(); customLabel.ToPosition = new DateTime(2007, 1, 11).ToOADate(); chart1.ChartAreas[0].AxisX.CustomLabels.Add(customLabel);- Proposed As Answer by Peter Choi - SQLMicrosoft Employee Wednesday, September 09, 2009 6:13 PM
- Marked As Answer by Alex GorevMicrosoft Employee, Owner Friday, September 25, 2009 4:08 AM
-
Thursday, September 10, 2009 11:45 AM
refer forums of www.dundas.com
You will get any solutions of charts in asp.net
SSN "If you want to live a happy life, tie it to a goal. Not to people or things." : Albert Einstein

