Skip to content

Documentation / @ripl/vue-charts / RiplChartDefinition

Interface: RiplChartDefinition ​

Defined in: vue-charts/src/core/define-chart.ts:82

Describes one chart to wrap as a component.

Properties ​

PropertyTypeDescriptionDefined in
eventsreadonly string[]The events the chart emits, read from the class's own $events declaration.vue-charts/src/core/define-chart.ts:88
namestringThe component's name, e.g. RiplBarChart.vue-charts/src/core/define-chart.ts:84
optionKeysreadonly string[]The chart's own option names, on top of the options every chart accepts.vue-charts/src/core/define-chart.ts:86

Methods ​

create() ​

create(target, options): RiplAnyChart

Defined in: vue-charts/src/core/define-chart.ts:90

Constructs the underlying chart from the target and the options bound on the component.

Parameters ​

ParameterType
targetHTMLElement | Context<Element, Record<string, unknown>>
optionsRiplWritable

Returns ​

RiplAnyChart