Profile Picture

Dashed and dotted line series

Posted By Sharath babu 11 Years Ago
Author
Message
Sharath babu
questionmark Posted 11 Years Ago
View Quick Profile
Junior Member

Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 16, Visits: 1
1)How can i create dotted as well as dash line series dynamically.?




2 ) how Can i create axis labels to be aligned left as shown in the fig. This am able to achieve using labelstyle property and assigning back to the axis labels but dynamically am making some axis labels as bold and some labels as normal text. This property am not able to achieve by using below code


NOrdinalScaleConfigurator scaleX = chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator as NOrdinalScaleConfigurator;
scaleX.AutoLabels = false;
scaleX.MajorTickMode = MajorTickMode.CustomStep;
scaleX.CustomStep = 1;
scaleX.LabelStyle.TextStyle.TextFormat = TextFormat.XML;
scaleX.OuterMajorTickStyle.LineStyle.Width = new NLength(0);
scaleX.InnerMajorTickStyle.Length = new NLength(0);
scaleX.RulerStyle.Height = new NLength(0);
scaleX.RulerStyle.BorderStyle.Width = new NLength(0);
scaleX.LabelStyle.TextStyle.FontStyle = new NFontStyle("Arial", 8, FontStyle.Regular);

NRangeScaleLabelStyle labelStyle = new NRangeScaleLabelStyle();
labelStyle.TickMode = RangeLabelTickMode.None;
labelStyle.WrapText = true;
labelStyle.MaxWidth = new NLength(100, NGraphicsUnit.Pixel);
labelStyle.TextStyle.StringFormatStyle.HorzAlign = Nevron.HorzAlign.Right;//working
labelStyle.TextStyle.FontStyle.EmSize = new NLength(8, NGraphicsUnit.Pixel);
scaleX.LabelStyle = labelStyle;
scaleX.LabelFitModes = new LabelFitMode[] { };


so for making some axis labels as bold am making not using labelstyle property without this i can achieve the boldness of the axis labels

how can i achieve this.


Attachments
tool.bmp (146 views, 1.00 MB)


Similar Topics


Reading This Topic