I try to make a text formatting for my chart on IOS and Android, regarding your documentation:
IOS:
https://www.scichart.com/documentation/ios/current/axis-labels—textformatting-and-cursortextformatting.html
yAxis.textFormatting = “$0.0”
Android:
https://www.scichart.com/documentation/android/current/Axis%20Labels%20-%20TextFormatting%20and%20CursorTextFormatting.html
yAxis.setTextFormatting(“$0.0000”);
I checked my code and its the same like yours. On Android i have:
// yAxis filed with type IAxis
private IAxis yAxis;
// create
yAxis = sciChartBuilder
.newNumericAxis()
.withGrowBy(0.01d, 0.1d)
.withDrawLabels(true)
.withDrawMajorGridLines(true)
.withDrawMinorGridLines(false)
.withDrawMajorBands(false)
.withDrawMajorTicks(false)
.build();
// the set textFormatting:
yAxis.setTextFormatting(“$0.0000”);
On IOS i have:
var yAxis: SCINumericAxis?
self.yAxis = SCINumericAxis()
self.yAxis?.textFormatting = “$0.0”
But it is not working, can you tell me please why? What I’m doing wrong?
- Alexander Kishchak asked 3 years ago
- last active 3 years ago