SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


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.

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

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:

With best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.