Charts / Line
Single or multi-series line chart. Best for showing trends over a continuous axis.
Pass this structure to the
:data prop.
// Single series
[
['label' => 'Mon', 'value' => 230],
['label' => 'Tue', 'value' => 310],
]
// Multi-series
[
['name' => 'Revenue', 'data' => [['x' => 'Mon', 'y' => 400], ...]],
['name' => 'Target', 'data' => [['x' => 'Mon', 'y' => 350], ...]],
]
<x-tayo::chart
type="line"
:data="$data"
:height="420"
colors="default"
/>