Components

BaseChartCard

A card with a title, a description and a chart picked by preset.

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

Presets

area

Desktop, mobile and tablet over the last week.

line

Desktop, mobile and tablet over the last week.

bar

Desktop, mobile and tablet over the last week.

stacked-bar

Desktop, mobile and tablet over the last week.

donut

Desktop, mobile and tablet over the last week.

pie

Desktop, mobile and tablet over the last week.

API

Props

Name
Type
Default
Description
title
required
string—The card title, also the chart’s accessible name.
descriptionstring—A sentence under the title.
presetChartPreset—bar, stacked-bar, area, line, donut or pie.
seriesChartSeriesInput[]The data.
categories(string | number)[][]The labels.
horizontalbooleanfalseHorizontal bars.
markersbooleanfalsePoint markers.
legendboolean—Forces the legend.
value-formatChartValueFormatter—Formats axes and tooltips.
optionsChartOptions{}ECharts options merged on top.
loadingbooleanfalseShows the skeleton.
heightstring | number—The chart height. With fill it is the minimum height.
fillbooleanfalseThe chart grows to fill the card when the card is taller than the chart, for example when it sits next to a longer card in the same row. On phones it keeps height.

Slots

Name
Slot props
Description
#chart—Replaces the chart with your own content.
© 2026 melsami UI.
Developer documentation for melsami UI.