@waylis/core / LineChart
Interface: LineChart
Defined in: src/message/types.ts:16
Configuration for rendering a line chart.
More info: https://mantine.dev/charts/line-chart/
Properties
curveType?
ts
optional curveType:
| "bump"
| "linear"
| "natural"
| "monotone"
| "step"
| "stepBefore"
| "stepAfter";
Defined in: src/message/types.ts:24
Curve interpolation type.
data
ts
data: Record<string, any>[];
Defined in: src/message/types.ts:18
Data points for the chart.
dataKey
ts
dataKey: string;
Defined in: src/message/types.ts:20
Key in each data object used for the X-axis.
extra?
ts
optional extra: Record<string, any>;
Defined in: src/message/types.ts:26
Any other parameters.
series
ts
series: {
color?: string;
label?: string;
name: string;
yAxisId?: string;
}[];
Defined in: src/message/types.ts:22
Series definitions (e.g. lines).
color?
ts
optional color: string;
label?
ts
optional label: string;
name
ts
name: string;
yAxisId?
ts
optional yAxisId: string;