Variable: useMargin
@arolariu/components / useMargin
Variable: useMargin
useMargin: () =>
Margin
Defined in: components/ui/chart.tsx:632
Margin is the empty space around the chart. Excludes axes and legend and brushes and the like. This is declared by the user in the chart props. If you are interested in the space occupied by axes, legend, or brushes, use useOffset instead, which also includes calculated widths and heights of axes and legends.
Returns undefined if used outside a chart context.
Returns
Margin
The margin of the chart in pixels, or undefined if not in a chart context.
// was this page useful?