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

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.