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

array
getStylingVariables()

No description

bool
isCssColor(string $color)

No description

bool
isTailwindClass(string $color)

No description

array
getColorPalette()

No description

__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

array
getPalette()

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

Parameters

string|null $title
bool $border
string|null $borderColor
string|null $backgroundColor
mixed $chartColor

Return Value

void

in HasChartStyling at line 27
protected array getStylingVariables()

No description

Return Value

array

at line 256
protected bool isCssColor(string $color)

No description

Parameters

string $color

Return Value

bool

at line 261
protected bool isTailwindClass(string $color)

No description

Parameters

string $color

Return Value

bool

in HasChartStyling at line 55
protected array getColorPalette()

No description

Return Value

array

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

Parameters

array $data
string $height
mixed $chartColor
string|null $backgroundColor
string|null $title
bool $showLabels
bool $showValues
string $legendPosition
string $formatValues
string $label
string $value
bool $border
string|null $borderColor
bool $showGrid
int $gridLevels
bool $showAxes
bool $fillArea
float $fillOpacity
bool $showLegend

at line 66
render()

No description

at line 77
protected array prepareChartData()

No description

Return Value

array

at line 204
protected string calculatePolygonPoints(array $points, array $axes, float $maxValue)

No description

Parameters

array $points
array $axes
float $maxValue

Return Value

string

at line 238
protected array getPalette()

No description

Return Value

array