Skip to content

charton API


charton API / @chart-on/core / index / resolveGrid

Function: resolveGrid() ​

resolveGrid(grid, theme): object

Defined in: packages/core/src/chart.ts:7102

Grid with each direction's color resolved: its own, the theme's per-direction color, then theme.grid.

Parameters ​

grid ​

GridOptions

theme ​

ChartTheme

Returns ​

object

horizontal ​

horizontal: Required<GridLineOptions>

vertical ​

vertical: Required<GridLineOptions>