RadarChart
class RadarChart extends Component
Traits
Properties
| string|null | $title | from HasChartStyling | |
| bool | $border | from HasChartStyling | |
| string|null | $borderColor | from HasChartStyling | |
| string|null | $backgroundColor | from HasChartStyling | |
| mixed | $chartColor | from HasChartStyling | |
| array | $data | ||
| string | $height | ||
| bool | $showLabels | ||
| bool | $showValues | ||
| string | $legendPosition | ||
| string | $formatValues | ||
| string | $label | ||
| string | $value | ||
| bool | $showGrid | ||
| int | $gridLevels | ||
| bool | $showAxes | ||
| bool | $fillArea | ||
| float | $fillOpacity | ||
| bool | $showLegend |
Methods
void
initializeChartStyling(string|null $title = null, bool $border = true, string|null $borderColor = null, string|null $backgroundColor = null, mixed $chartColor = null)
No description
from
HasChartStyling
string|null
getTailwindColorValue(string $colorName)
Convert internal palette color names to CSS hex values.
from
HasChartStyling
__construct(array $data = [], string $height = 'h-96', mixed $chartColor = null, string|null $backgroundColor = null, string|null $title = null, bool $showLabels = true, bool $showValues = false, string $legendPosition = 'bottom', string $formatValues = '%s', string $label = 'label', string $value = 'value', bool $border = true, string|null $borderColor = null, bool $showGrid = true, int $gridLevels = 5, bool $showAxes = true, bool $fillArea = true, float $fillOpacity = 0.2, bool $showLegend = true)
No description
render()
No description
array
prepareChartData()
No description
string
calculatePolygonPoints(array $points, array $axes, float $maxValue)
No description
Details
in
HasChartStyling at line 13
protected void
initializeChartStyling(string|null $title = null, bool $border = true, string|null $borderColor = null, string|null $backgroundColor = null, mixed $chartColor = null)
No description
in
HasChartStyling at line 27
protected array
getStylingVariables()
No description
in
HasChartStyling at line 37
protected bool
isCssColor(string $color)
No description
in
HasChartStyling at line 44
protected bool
isTailwindClass(string $color)
No description
in
HasChartStyling at line 55
protected array
getColorPalette()
No description
in
HasChartStyling at line 81
protected string|null
getTailwindColorValue(string $colorName)
Convert internal palette color names to CSS hex values.
This prevents dynamic Tailwind class construction which doesn't work with JIT compilation.
at line 27
__construct(array $data = [], string $height = 'h-96', mixed $chartColor = null, string|null $backgroundColor = null, string|null $title = null, bool $showLabels = true, bool $showValues = false, string $legendPosition = 'bottom', string $formatValues = '%s', string $label = 'label', string $value = 'value', bool $border = true, string|null $borderColor = null, bool $showGrid = true, int $gridLevels = 5, bool $showAxes = true, bool $fillArea = true, float $fillOpacity = 0.2, bool $showLegend = true)
No description
at line 66
render()
No description
at line 77
protected array
prepareChartData()
No description
at line 213
protected string
calculatePolygonPoints(array $points, array $axes, float $maxValue)
No description