class BarChart 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
float|null $max
string $height
bool $showValues
string $color
string $gap
mixed $rounded
bool $showGrid
bool $showYAxis
string $formatValues
string $label
string $value

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 = [], float|null $max = null, string $height = 'h-64', bool $showValues = true, string $color = 'beartropy', mixed $chartColor = null, string|null $backgroundColor = null, string $gap = 'sm', mixed $rounded = true, bool $showGrid = false, bool $showYAxis = false, string $formatValues = '%s', string $label = 'label', string $value = 'value', string|null $title = null, bool $border = true, string|null $borderColor = null)

No description

render()

No description

array
prepareItems()

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

in HasChartStyling at line 37
protected bool isCssColor(string $color)

No description

Parameters

string $color

Return Value

bool

in HasChartStyling at line 44
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 25
__construct(array $data = [], float|null $max = null, string $height = 'h-64', bool $showValues = true, string $color = 'beartropy', mixed $chartColor = null, string|null $backgroundColor = null, string $gap = 'sm', mixed $rounded = true, bool $showGrid = false, bool $showYAxis = false, string $formatValues = '%s', string $label = 'label', string $value = 'value', string|null $title = null, bool $border = true, string|null $borderColor = null)

No description

Parameters

array $data
float|null $max
string $height
bool $showValues
string $color
mixed $chartColor
string|null $backgroundColor
string $gap
mixed $rounded
bool $showGrid
bool $showYAxis
string $formatValues
string $label
string $value
string|null $title
bool $border
string|null $borderColor

at line 60
render()

No description

at line 99
protected array prepareItems()

No description

Return Value

array