Pre loader

Candle Stick charts zoom on x axis is not enabled

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

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();

Version
SciChart_Android_Source_v1.0.0_Build1059
  • You must to post comments
0
0

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

  • You must to post comments
0
0

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

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies