Home > @i2analyze/notebook-sdk > app > IViewEditor > fitToItems
app.IViewEditor.fitToItems() method
Adjusts the position and zoom of the chart so that a specific collection of elements is visible.
Signature:
fitToItems(items: IElementsAndRecords, options?: chart.IFitConstraints): void;
Introduced: version 1.1
Parameters
Parameter | Type | Description |
---|---|---|
items | IElementsAndRecords | The elements to make visible, and the records whose containing elements are to be visible. |
options | chart.IFitConstraints | (Optional) A set of constraints that place restrictions on the change to the viewport. |
Returns:
void