The type of chart to create (e.g., 'line', 'bar', 'pie').
The data for the chart, which should be an array of objects.
The label/s for the data.
The title of the chart.
OptionalscaleOptions: _DeepPartialObject<The scape options for the chart.
OptionalzoomOptions: _DeepPartialObject<ZoomPluginOptions>The zoom options for the chart.
OptionalannotationOptions: _DeepPartialObject<AnnotationPluginOptions>The annotation options for the chart.
Optionalsubtitle: stringThe subtitle of the chart.
This function creates a new Chart.js chart. If a chart already exists, it is destroyed before a new one is created.