Profile Picture

How to plot Series between in center of Axis Label with DateTimeScaleCofigurator??

Posted By Niranjan Singh 12 Years Ago

How to plot Series between in center of Axis Label with...

Author
Message
Niranjan Singh
Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 49, Visits: 179
I am having an issue regarding the Bar series plot position, I am using NDateTimeScaleConfigurator with setting the following properties:

chartPrimaryXAxis = chart.Axis(StandardAxis.PrimaryX);
// X Axis Configuration

dateTimeScale = new NDateTimeScaleConfigurator();
dateTimeScale.Title.Text = string.Empty;
dateTimeScale.LabelStyle.Angle = new NScaleLabelAngle(ScaleLabelAngleMode.Scale, 90);
dateTimeScale.LabelStyle.ContentAlignment = ContentAlignment.MiddleLeft;
dateTimeScale.LabelStyle.TextStyle.FontStyle = new NFontStyle("Times New Roman", 6);
dateTimeScale.LabelFitModes = new LabelFitMode[] { LabelFitMode.AutoScale };
chartPrimaryXAxis.ScaleConfigurator = dateTimeScale;
chartPrimaryXAxis.ScrollBar.ResetButton.Visible = true;
chartPrimaryXAxis.ScrollBar.ShowSliders = true;
dateTimeScale.EnableUnitSensitiveFormatting = true;
dateTimeScale.AutoDateTimeUnits = autoUnits;


For Example if i have data on data 1/1/2012 then and i am adding more than one series, then it will be plotted on the starting axis tick label and all goes out the axis.
Check the generated output and the desired output of the chart as attachment.



Attachments
BarChart Series out of Axis.gif (67 views, 79.00 KB)
desired output.gif (64 views, 20.00 KB)

Threaded View



Similar Topics


Reading This Topic