zoomByRect method
Zooms the chart for a given rectangle value.
Here, you can pass the rectangle with the left, right, top, and bottom values, using which the selection zooming will be performed.
Implementation
void zoomByRect(Rect rect) {
_drawSelectionZoomRect(rect);
}