Variable: Chart
ts
const Chart: DefineComponent<ExtractPropTypes<{
dashboard: {
default: null;
type: PropType<Dashboard<string> | null>;
};
spec: {
required: true;
type: PropType<ChartSpec<string, unknown>>;
};
}>, () => VNode<RendererNode, RendererElement, {
[key: string]: any;
}>, {
}, {
}, {
}, ComponentOptionsMixin, ComponentOptionsMixin, {
}, string, PublicProps, ToResolvedProps<ExtractPropTypes<{
dashboard: {
default: null;
type: PropType<Dashboard<string> | null>;
};
spec: {
required: true;
type: PropType<ChartSpec<string, unknown>>;
};
}>, {
}>, {
dashboard: Dashboard<string> | null;
}, {
}, {
}, {
}, string, ComponentProvideOptions, true, {
}, any>;Defined in: packages/vue/src/index.ts:271
Draws one chart in a <div> with the spec's renderer or the dashboard's: <Chart :dashboard="dash" :spec="spec" />. Attributes such as class and style go on the div. Same lifetime rules as useChart. The component exposes chart, data, filter and reset.