Documentation / @ripl/vue-charts / RiplChartProps
Type Alias: RiplChartProps<TOptions> ​
RiplChartProps<
TOptions> =Omit<TOptions,"key"> &{ [TKey in keyof TOptions as TKey extends "key" ? "keyBy" : never]: TOptions[TKey] }
Defined in: vue-charts/src/types.ts:30
A chart's options as component props, with any option whose name Vue reserves renamed.
Only key is affected: Vue consumes a key attribute as the vnode key, so the option is bound as keyBy instead.
Type Parameters ​
| Type Parameter | Description |
|---|---|
TOptions | The chart's options interface, e.g. BarChartOptions. |