SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.