Hi Mikolaj,
Greetings from Syncfusion, we can achieve your requirement by customizing chart axis AxisLineStyle’s StrokeColor property value as Transparent or by setting the StrokeWidth property value as 0(zero) of the chart axis.
Please refer the below code snippet:
CodeSnippet[c#]:
NumericalAxis numericalAxis = new NumericalAxis();
numericalAxis.AxisLineStyle.StrokeColor = Color.Transparent;//Hide Axis line
//numericalAxis.AxisLineStyle.StrokeWidth = 0;//Hide Axis line
numericalAxis.MajorTickStyle.StrokeColor = Color.Transparent;//Hide TickLines
//numericalAxis.MajorTickStyle.StrokeWidth = 0;//Hide TickLines |
CodeSnippet[XAML]:
<chart:NumericalAxis>
<chart:NumericalAxis.AxisLineStyle>
<chart:ChartLineStyle StrokeColor="Transparent"/>
</chart:NumericalAxis.AxisLineStyle>
<chart:NumericalAxis.MajorTickStyle>
<chart:ChartAxisTickStyle StrokeColor="Transparent"/>
</chart:NumericalAxis.MajorTickStyle>
</chart:NumericalAxis> |
Please refer the below UG link for More details,
https://help.syncfusion.com/xamarin/sfchart/axis#axis-line-customization
Note: We have also included code to hide the TickLines of the axis to produce output as per the sample image. Please ignore the TickLines customization, if you don’t need.
Thanks,
Bharathiraja.