Hello,
I want to zoom at graph but without generating new 5×5 cubes in background. Is there a way how to do it?
- Martin Voroňák asked 6 years ago
- last edited 6 years ago
-
Hi Martin. Can you clarify what do you mean by “5*5 cubes in background”? Do you mean axis bands which are drawn by axis ( https://www.scichart.com/documentation/android/v2.x/webframe.html#Axis%20Styling%20-%20Styling%20Gridlines,%20Ticks%20and%20Axis%20Bands.html )?
-
Yes, I mean the axis bands. I want to zoom at my values but without generating new bands in the backgroud. I will explain further: lets say i have a linear graph from [0,0] to [1.1]. It is drawn for example into one grid band. If i zoom, it is redrawn and now the line is in more bands. I would like to know how to zoom at a line without new axis bands generating – after zoom in it stays in the 1 band. Please request for screenshots if i am unclear.
- You must login to post comments
Hi Martin,
Axis bands are drawn between even/uneven major ticks which are generated by axis TickProvider. So the only way to prevent regeneration of bands is to disable auto ticks generation and set your own Major/MinorDelta values. In this case band width will be always equal of MajorDelta and all bands will be drawn at same coordinates.
Also if you need more manual handling of this case you can create custom TickProvider and generate major ticks values on your own:
class CustomTickProvider extends TickProvider {
@Override
protected void updateTicks(DoubleValues minorTicks, DoubleValues majorTicks) {
final IAxisCore axis = this.axis; // can get some values from axis if it's required
minorTicks.add(desiredMinorTicks); // set minorTicks
majorTicks.add(desiredMajorTicks); // set majorTicks
}
}
Hope this will help you!
Best regards,
Yura
- Yura Khariton answered 6 years ago
- You must login to post comments
Please login first to submit.