Skip to content

charton API


charton API / @chart-on/vue / index / Chart

Variable: Chart ​

const Chart: DefineComponent<ExtractPropTypes<{ dataSource: PropType<DataSource | null>; interval: PropType<Interval>; on: PropType<ChartEventHandlers>; options: PropType<ChartOptionsPatch>; symbol: StringConstructor; }>, () => VNode<RendererNode, RendererElement, {[key: string]: any; }>, { }, { }, { }, ComponentOptionsMixin, ComponentOptionsMixin, { }, string, PublicProps, ToResolvedProps<ExtractPropTypes<{ dataSource: PropType<DataSource | null>; interval: PropType<Interval>; on: PropType<ChartEventHandlers>; options: PropType<ChartOptionsPatch>; symbol: StringConstructor; }>, { }>, { }, { }, { }, { }, string, ComponentProvideOptions, true, { }, any>

Defined in: chart.ts:19

The chart engine alone, in a div. The chart is created when the component mounts and destroyed when it unmounts; prop changes update it in place. class, style and other attributes go to the div: give it a height, the chart fills it. The default slot renders inside the div, where useChart() returns this chart.