Interface ChartNavigationOptions

Preferences for pointer panning and the view restored by reset.

interface ChartNavigationOptions {
    defaultBarSpacing?: number;
    defaultVisibleBars: number;
    mousePan: "horizontal" | "both";
    panEnabled?: boolean;
    zoomEnabled?: boolean;
}

Properties

defaultBarSpacing?: number

Initial/reset spacing in CSS pixels. Positive values override the bar count; 0 disables it.

defaultVisibleBars: number

Latest bars to show initially and on reset. 0 fits all loaded bars (default).

mousePan: "horizontal" | "both"

Mouse and pen plot drags. Touch gestures retain two-axis panning. Default: both.

panEnabled?: boolean

Allow user plot translation, including touch, wheel and keys. Default: true.

zoomEnabled?: boolean

Allow user zoom and reset/fit actions. Programmatic setters remain available. Default: true.