Home > @i2analyze/notebook-sdk > app > IViewEditor > fitToChart
app.IViewEditor.fitToChart() method
Adjusts the position and zoom of the chart so that all elements on it are visible.
Signature:
fitToChart(options?: chart.IFitConstraints): void;
Introduced: version 1.1
Parameters
Parameter | Type | Description |
---|---|---|
options | chart.IFitConstraints | (Optional) A set of constraints that place restrictions on the change to the viewport. |
Returns:
void