Chart#
Generic Highcharts wrapper. <chart> is the underlying
chart primitive other components can reach for instead of
mounting Highcharts directly. Renders either as a Highstock
chart (the default, suitable for time-series with the built-in
range selector and navigator) or as a plain Highcharts chart
when isStock is set to false.
The component accepts two data-supply modes:
url– fetch the data from a JSON endpoint. The endpoint must return{"status": true, "data": [...]}. The<loading>overlay is started for the duration of the request.series– pass the data inline as a prop. No fetch is performed; the chart renders straight from the prop.
Re-rendering destroys the previous chart instance before the new one is constructed, so the component is safe to drive from reactive parents.