Home > @i2analyze/notebook-sdk > app > IViewEditor > fitToSelection
app.IViewEditor.fitToSelection() method
Adjusts the position and zoom of the chart so that all elements containing selected records are visible.
Signature:
fitToSelection(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