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

0 votes

I have a line chart and need to implement textAlign: left property for tickLabel on yAxis. I have found some way to do it on the forum, but it does not work in my case:
xAxis.setAxisTickLabelStyle(new AxisTickLabelStyle(Gravity.CENTER, Layout.Alignment.ALIGN_CENTER, 5, 0, 5, 0));
I get the error:
Alignment cannot be converted to int
But according documentation AxisTickLabelStyle class get 5 int arguments. Can you help me please how to solve it!

0 votes


I’m trying to convert Java code to swift and I need the AnnotationLabel’s setAxisLabelStyle equivalent.

AnnotationLabel annotationLabel = new AnnotationLabel(getContext());

            annotationLabel.setAxisLabelStyle(new Action1<AnnotationLabel>()
                public void execute(AnnotationLabel annotationLabel)
                    annotationLabel.setFontStyle(new FontStyle(37.0f, Color.BLUE));

How can i apply this code in swift?

Showing 2 results
This template supports the sidebar's widgets. Add one or use Full Width layout.