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.
- Tae Gwang Han asked 3 years ago
- You must login 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:
https://www.scichart.com/documentation/win/current/webframe.html#Axis%20Styling%20-%20Templating%20Axis%20Labels.html
With best regards,
Oleksandr
- Oleksandr Shvets answered 3 years ago
- You must login to post comments
Please login first to submit.