PolarChart
class PolarChart 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 | ||
| string | $legendPosition | ||
| string | $formatValues | ||
| string | $label | ||
| string | $value | ||
| string | $labelColor | ||
| bool | $showGrid | ||
| int | $gridLevels |
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-48 md:h-96', mixed $chartColor = null, string|null $backgroundColor = null, string|null $title = null, bool $showLabels = true, string $legendPosition = 'right', string $formatValues = '%s', string $label = 'label', string $value = 'value', bool $border = true, string|null $borderColor = null, string $labelColor = 'white', bool $showGrid = true, int $gridLevels = 4)
No description
render()
No description
array
prepareSegments()
No description
array
extractItems()
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 23
__construct(array $data = [], string $height = 'h-48 md:h-96', mixed $chartColor = null, string|null $backgroundColor = null, string|null $title = null, bool $showLabels = true, string $legendPosition = 'right', string $formatValues = '%s', string $label = 'label', string $value = 'value', bool $border = true, string|null $borderColor = null, string $labelColor = 'white', bool $showGrid = true, int $gridLevels = 4)
No description
at line 54
render()
No description
at line 63
protected array
prepareSegments()
No description
at line 148
protected array
extractItems()
No description