Components

BaseChart

Area, line, bar, donut, pie and radial charts on Apache ECharts, coloured by the theme.

components/ui/chart/BaseChart.vue
View in the demo

Types

Switch the type, then switch the example to dark mode: the colours follow the theme.

Stacked, horizontal, markers and options

The Charts guide explains colours, formats, the escape hatch and how ECharts is loaded.

API

Props

Name
Type
Default
Description
typeChartType"line"area, line, bar, donut, pie or radial.
stackedbooleanfalseStacks bars or areas.
horizontalbooleanfalseHorizontal bars.
markersbooleanfalseA dot on every point of lines and areas.
legendboolean—Forces the legend on or off; by default it shows with several series.
value-formatChartValueFormatter—Formats axis labels and tooltips.
heightstring | numberDEFAULT_HEIGHTHeight in pixels or a CSS length.
aria-labelstring—Describes the chart for screen readers.
optionsChartOptions{}An ECharts option deep-merged on top.
loadingbooleanfalseShows the skeleton.
seriesChartSeriesInput[][{ name?, data }], or a plain array for one series.
categories(string | number)[][]X-axis labels, or slice names for donut, pie and radial.
© 2026 melsami UI.
Developer documentation for melsami UI.