1import type { ChartDataset, ChartType, Point } from "chart.js";
2
3/**
4 * The chart data container.
5 *
6 * Has relevant default X-Axis labels & corresponding datasets.
7 */
8export interface Data {
9  // X-axis labels.
10  labels: number[];
11  // The corresponding datasets.
12  datasets: ChartDataset[];
13}
14
15/**
16 * A single data-series being rendered in the chart.
17 *
18 * Used by a Mapper for data transformations.
19 */
20export interface Series {
21  descriptiveLabel: string;
22  type: ChartType;
23  data: Point[];
24  // Additional series options
25  // For e.g. https://www.chartjs.org/docs/latest/charts/line.html
26  options: object;
27}
28