Home > @i2analyze/notebook-sdk > app > IViewEditor
app.IViewEditor interface
A set of methods that change the chart view.
Signature:
interface IViewEditor
Introduced: version 1.1
Methods
| Method | Description |
|---|---|
| fitToChart(options) | Adjusts the position and zoom of the chart so that all elements on it are visible. |
| fitToHeight(options) | Adjusts the position and zoom of the chart so that the full range of elements on the y axis is visible. |
| fitToItems(items, options) | Adjusts the position and zoom of the chart so that a specific collection of elements is visible. |
| fitToSelection(options) | Adjusts the position and zoom of the chart so that all elements containing selected records are visible. |
| setViewport(viewport) | Sets the location on the chart that appears in the center of the viewport, and the zoom level. |