Search results

ZoomSettingsModel

Interface for a class ZoomSettings

Properties

enableDeferredZooming

boolean

If set to true, zooming will be performed on mouse up. It requires enableSelectionZooming to be true.

<div id='Chart'></div>
let chart: Chart = new Chart({
...
   zoomSettings: {
     enableSelectionZooming: true,
     enableDeferredZooming: false
   }
...
});
chart.appendTo('#Chart');

enableMouseWheelZooming

boolean

If set to true, chart can be zoomed by using mouse wheel.

enablePan

boolean

Specifies whether chart needs to be panned by default.

enablePinchZooming

boolean

If to true, chart can be pinched to zoom in / zoom out.

enableScrollbar

boolean

Specifies whether axis needs to have scrollbar.

enableSelectionZooming

boolean

If set to true, chart can be zoomed by a rectangular selecting region on the plot area.

mode

string

Specifies whether to allow zooming vertically or horizontally or in both ways. They are,

  • x,y: Chart can be zoomed both vertically and horizontally.
  • x: Chart can be zoomed horizontally.
  • y: Chart can be zoomed vertically. It requires enableSelectionZooming to be true.

    <div id='Chart'></div>
    let chart: Chart = new Chart({
    ...
    zoomSettings: {
     enableSelectionZooming: true,
     mode: 'XY'
    }
    ...
    });
    chart.appendTo('#Chart');

toolbarItems

string[]

Specifies the toolkit options for the zooming as follows:

  • Zoom
  • ZoomIn
  • ZoomOut
  • Pan
  • Reset