Usage
Props
Grid type
'polygon' | 'circle'
default:"polygon"
The type of polar grids.
polygon: renders concentric polygonscircle: renders concentric circles
Axes
string | number
default:"0"
The id of the angle axis that this grid uses.
string | number
default:"0"
The id of the radius axis that this grid uses.
Custom grid values
number[]
The array of angles for each radial line grid, in degrees.When used inside a chart context, this is calculated automatically and this prop is ignored.
number[]
The array of radii for each concentric circle/polygon grid.When used inside a chart context, this is calculated automatically and this prop is ignored.
Position (standalone mode)
These props are only used when PolarGrid is rendered outside a chart context.number
The x-coordinate of the center.Calculated automatically inside a chart context.
number
The y-coordinate of the center.Calculated automatically inside a chart context.
number
The radius of the inner polar grid.Calculated automatically inside a chart context.
number
The radius of the outer polar grid.Calculated automatically inside a chart context.
Appearance
boolean
default:"true"
If true, radial lines are drawn from the center to the edge.
string
default:"#ccc"
The stroke color of the grid lines.
string
The fill color of the background.If specified, a filled background is rendered behind the grid.
number
The stroke width of the grid lines.
string
The pattern of dashes and gaps for the grid lines.Example: “3 3” creates a dashed line.
Display
number
default:"-100"
The z-index of the grid.Negative values render behind most other elements.
Other
string
CSS class name for the polar grid element.