Pre loader

Axis tick label placement

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Can I place axis tick label text to right-aligned?

Sorry I can’t attach screen shot for my company’s security reason..

var yNumAxis = new NumericAxisViewModel
{
AxisAlignment = SciChart.Charting.Visuals.Axes.AxisAlignment.Left,
TickTextBrush = new SolidColorBrush(Colors.White),
TickLabelsOffset = 1,
DrawMajorGridLines = true,
MajorGridLinesBrush = new SolidColorBrush(Colors.LightGray),
FontSize = 12,
StrokeThickness = 1,
DrawMajorBands = false,
DrawMinorGridLines = false,
DrawMinorTicks = false,
VisibleRange = new DoubleRange(16, 23),
LabelProvider = this.YAxisLabelProvider
};

There is no property related TextAlignment

Please help me.

Version
latest (6.x)
  • You must to post comments
0
0

Hi Tae Gwang Han,

Thanks for your inquiry,
Yes, this is possible. You should set HorizontalAnchorPoint property to ‘Right’ in a Style for Axis Labels. Then this Style can be applied via the TickLabelStyle property on an Axis.
Please take a look at our documentation regarding Templating Axis Labels for more info:
https://www.scichart.com/documentation/win/current/webframe.html#Axis%20Styling%20-%20Templating%20Axis%20Labels.html

With best regards,
Oleksandr

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies