20 lines
693 B
TypeScript
20 lines
693 B
TypeScript
import type { Component, InjectionKey, Ref } from 'vue'
|
|
|
|
export const ChartConfigSymbol: InjectionKey<Ref<ChartConfig>> = Symbol('chartConfig')
|
|
|
|
export type ChartConfig = {
|
|
[key in string]: {
|
|
label?: string
|
|
icon?: Component
|
|
color?: string
|
|
theme?: Record<string, string>
|
|
}
|
|
}
|
|
|
|
export { default as ChartContainer } from './ChartContainer.vue'
|
|
export { default as ChartTooltip } from './ChartTooltip.vue'
|
|
export { default as ChartTooltipContent } from './ChartTooltipContent.vue'
|
|
export { default as ChartCrosshair } from './ChartCrosshair.vue'
|
|
export { default as ChartLegend } from './ChartLegend.vue'
|
|
export { default as ChartLegendContent } from './ChartLegendContent.vue'
|