customize the ZoomBars in a chart

interface ZoomBarsOptions {
    minZoomRatio?: number;
    top?: ZoomBarOptions;
    updateRangeAxis?: boolean;
    zoomRatio?: number;
}

Properties

minZoomRatio?: number

a variable to define the minimum zoom ratio (0 ~ 1.0) If ( zoom domain / max domain ) < minZoomRatio, zoom-in functions will be disabled

currently only the top position is supported

updateRangeAxis?: boolean

whether keep updating range axis in real time while zoom domain is changing

zoomRatio?: number

a variable to handle default zoom in ratio (0 ~ 1.0) ex: shift click zoom in ratio