Skip to content
EliteChart

getPlotInsets

Documentation


Documentation / @elitechart/core / getPlotInsets

code
function getPlotInsets(width): PlotInsets;

Defined in: theme/responsive.ts:71

Choose gutter sizes appropriate for the current chart width. The chart calls this on every resize to pick desktop-vs-mobile insets.

Parameters

width

number

Returns

PlotInsets

Example

code
import { getPlotInsets } from '@elitechart/core';
const { priceAxisWidth, timeAxisHeight } = getPlotInsets(800);