Skip to content

Latest commit

 

History

History
86 lines (71 loc) · 2.4 KB

File metadata and controls

86 lines (71 loc) · 2.4 KB

Grid

Control the background grid appearance.

Options

Option Type Default Description
gridded boolean true Show/hide the grid
gridLineStyle solid|dashed solid Grid line pattern
sharedAxisZero boolean true Share zero label between axes
optimiseSquareSize boolean true Round grid sizes for sharper rendering
strict boolean false Force square grid cells

Line Style

Value Description
solid Continuous lines
dashed Dotted/dashed pattern

No Grid

Set gridded: false for a minimal look:

Shared Axis Zero

When enabled (default), the origin "0" is shared between X and Y axes:

grid: {
    sharedAxisZero: true; // Prevents duplicate "0" labels
}

::: tip Type Reference See GridOptions for full TypeScript definitions. :::