mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
21 lines
451 B
PHP
Executable File
21 lines
451 B
PHP
Executable File
@php
|
|
$options = $options ?? (object) [];
|
|
$cachedData = $cachedData ?? [];
|
|
$type = $type ?? 'line';
|
|
$maxHeight = $maxHeight ?? null;
|
|
@endphp
|
|
<div
|
|
x-data="pbChart({
|
|
cachedData: @js($cachedData),
|
|
options: @js($options),
|
|
type: @js($type),
|
|
})"
|
|
>
|
|
<canvas
|
|
x-ref="canvas"
|
|
@if ($maxHeight)
|
|
style="max-height: {{ $maxHeight }}"
|
|
@endif
|
|
></canvas>
|
|
</div>
|