Documentation / @ripl/charts / TrendChartOptions
Interface: TrendChartOptions<TData>
Defined in: charts/src/charts/trend.ts:142
Options for configuring a TrendChart.
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
TData | unknown |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
animation? | boolean | Partial<ChartAnimationOptions> | Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions. | BaseChartOptions.animation | charts/src/core/chart.ts:89 |
autoRender? | boolean | Whether the chart renders automatically on construction and after every Chart.update. Defaults to true. | BaseChartOptions.autoRender | charts/src/core/chart.ts:83 |
axis? | ChartAxisInput<TData> | Axis configuration (labels, ticks, titles). | - | charts/src/charts/trend.ts:156 |
data | TData[] | The dataset plotted across all series. | - | charts/src/charts/trend.ts:144 |
grid? | ChartGridInput | Background grid line configuration. | - | charts/src/charts/trend.ts:150 |
key | keyof TData | ((item) => string) | Accessor for each item's unique key, used for the categorical x-axis and matching across updates. | - | charts/src/charts/trend.ts:148 |
legend? | ChartLegendInput | Series legend configuration. | - | charts/src/charts/trend.ts:154 |
padding? | Partial<ChartPadding> | Space reserved around the chart, per edge, in pixels. | BaseChartOptions.padding | charts/src/core/chart.ts:85 |
series | TrendChartSeriesOptions<TData>[] | The series to render, mixing bar, line, and area types on shared axes. | - | charts/src/charts/trend.ts:146 |
title? | string | Partial<ChartTitleOptions> | Chart title as plain text, or a ChartTitleOptions object for full control. | BaseChartOptions.title | charts/src/core/chart.ts:87 |
tooltip? | ChartTooltipInput | Hover tooltip configuration. | - | charts/src/charts/trend.ts:152 |