Profile Picture

scale Ruler/label/title alignment of custom axis

Posted By Jim Rowe 12 Years Ago
Author
Message
Jim Rowe
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 4, Visits: 1
Hi, I've created a new custom axis like so:
NAxis customAxis = ((NCartesianAxisCollection)_chart.Axes).AddCustomAxis(AxisOrientation.Vertical, (AxisDockZone)(i % 2));
And would like to align the vertical scale to the left of the chart (default, correct?), the hash marks and their labels to the right of the ruler and the scale title to the top right of the scale, horizontally.

I've attached a png of how i would like it to look.

I've tried various combinations of the following:

customAxis.Anchor = new NDockAxisAnchor(AxisDockZone.FrontLeft, false, 0, 100);
customAxis.Anchor.RulerOrientation = RulerOrientation.Right;
(customAxis.Anchor as NDockAxisAnchor).SynchronizeRulerOrientation = true;
customAxis.ScaleConfigurator.Title.RulerAlignment = Nevron.HorzAlign.Right;
customAxis.ScaleConfigurator.Title.ContentAlignment = ContentAlignment.TopRight;
(customAxis.ScaleConfigurator as NLinearScaleConfigurator).DisplayFirstLabel = false;
(customAxis.ScaleConfigurator as NLinearScaleConfigurator).DisplayLastLabel = false;
(customAxis.ScaleConfigurator as NLinearScaleConfigurator).LabelStyle.ContentAlignment = ContentAlignment.MiddleRight;
(customAxis.ScaleConfigurator as NLinearScaleConfigurator).LabelStyle.KeepInsideRuler = true;

thanks!

Attachments
Untitled.png (63 views, 17.00 KB)



Similar Topics


Reading This Topic