Purchased the license version of sci android for candle stick chart on xaxis zoom is not working it zooms on y axis help me out to fix this issue.
On xaxis zoom is incorrect with this method newCategoryDateAxis.
final IAxis xAxis = sciChartBuilder.newCategoryDateAxis().build();
final IAxis yAxis = sciChartBuilder.newNumericAxis().withGrowBy(new DoubleRange(0d, 0.1d)).build();
With newnumeric axis zoom is working fine as expected
final IAxis xAxis = sciChartBuilder.newNumericAxis().withAxisAlignment(AxisAlignment.Bottom).build();
final IAxis yAxis = sciChartBuilder.newNumericAxis().withGrowBy(new DoubleRange(0d, 0.1d)).build();
- Broctagon Solutions asked 8 years ago
- last edited 8 years ago
- You must login to post comments
Hi there!
I know you have created a support ticket also, but for the benefit of the SciChart community, here is the answer:
To enable XAxis Drag in an Android Chart SciChartSurface, you need to specifically add the XAxisDragModifier to the surface ChartModifiers collection.
To do this, use this code:
ModifierGroup group = sciChartBuilder.newModifierGroupWithDefaultModifiers().build();
XAxisDragModifier xDrag = new XAxisDragModifier();
xDrag.setReceiveHandledEvents(true);
group.getChildModifiers().add(xDrag);
sciChartSurface.getChartModifiers().add(group);
Regarding Pinch Zoom in the horizontal axis, the team is aware that there is an issue with PinchZoomModifier when used in conjunction with CategoryDateAxis. They are working on it and there will be a fix released shortly.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
Update: This was actually reported as a bug in SciChart Android v1.0, where PinchZoomModifier did not work as expected with CategoryDateTimeAxis.
This has now been resolved in SciChart Android v1.1.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
Please login first to submit.