scale Ruler/label/title alignment of custom axis


Author
Message
Jim Rowe
Jim Rowe
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
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 (83 views, 17.00 KB)
Reply
Jim Rowe
Jim Rowe
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
Posts: 4, Visits: 1
Ok, I've edited the previous and reposted the image.
Thanks
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search