Add a note about the type parameters of the ChartData type (#9917)

This commit is contained in:
Evert Timberg
2021-11-28 13:01:14 -05:00
committed by GitHub
parent f8992a6168
commit 67aa6eb985

View File

@@ -3512,6 +3512,11 @@ export type ChartDataset<
{ [key in ChartType]: { type: key } & ChartTypeRegistry[key]['datasetOptions'] }[TType]
> & ChartDatasetProperties<TType, TData>;
/**
* TData represents the data point type. If unspecified, a default is provided
* based on the chart type.
* TLabel represents the label type
*/
export interface ChartData<
TType extends ChartType = ChartType,
TData = DefaultDataPoint<TType>,