SciChart Android
I only want to draw line chart which update real time. So, I don’t want label and grid. I remove the label and grid via scichart builder options but the chart remain little spacing for label. How to remove these spacing.
Android Version – 7.0
SciChart Version – 2.5.0.2610
My Code –
XAxis = sciChartBuilder.newDateAxis()
.withDrawLabels(false)
.withDrawMajorGridLines(false)
.withDrawMajorBands(false)
.withDrawMinorGridLines(false)
.withVisibleRange(current, graphEnd)
.withAutoRangeMode(AutoRange.Never)
.build();
YAxis = sciChartBuilder.newNumericAxis()
.withDrawLabels(false)
.withDrawMajorGridLines(false)
.withDrawMajorBands(false)
.withDrawMinorGridLines(false)
.withVisibleRange(-MaxY , MaxY)
.withAutoRangeMode(AutoRange.Never)
.build();
ModifierGroup chartModifiers = sciChartBuilder.newModifierGroup()
.withZoomPanModifier().withXyDirection(Direction2D.XDirection).withZoomExtentsY(false).build()
.build();
- トー カウン asked 5 years ago
- You must login to post comments
Hi there.
This is major and minor ticks. You can disable them as well via Builders API.
XAxis = sciChartBuilder.newDateAxis()
.withDrawLabels(false)
.withDrawMajorGridLines(false)
.withDrawMajorBands(false)
.withDrawMinorGridLines(false)
.withDrawMajorTicks(false)
.withDrawMinorTicks(false)
.withVisibleRange(current, graphEnd)
.withAutoRangeMode(AutoRange.Never)
.build();
Best regards,
Yura
- Yura Khariton answered 5 years ago
- You must login to post comments
Please login first to submit.