MeldUI

Charts Overview

A comprehensive charting library for Vue 3, built on ECharts with MeldUI theming and dark mode support.

Overview

@meldui/charts-vue provides 9 chart components that integrate seamlessly with MeldUI’s design system. Charts automatically read your Tailwind CSS theme variables and support dark mode out of the box.

Available Chart Types

ChartComponentBest For
Line ChartMeldLineChartTrends over time, continuous data
Bar ChartMeldBarChartComparisons across categories
Area ChartMeldAreaChartVolume and cumulative values over time
Pie ChartMeldPieChartProportions of a whole
Donut ChartMeldDonutChartProportions with a center metric
Scatter ChartMeldScatterChartCorrelations between two variables
Radar ChartMeldRadarChartMulti-dimensional comparisons
Heatmap ChartMeldHeatmapChartDensity and intensity across two dimensions
Mixed ChartMeldMixedChartCombining multiple chart types

Installation

pnpm add @meldui/charts-vue

See the Installation page for full setup instructions.

Common Props

All chart components accept these shared props:

PropTypeDefaultDescription
configobjectrequiredChart-specific configuration object
heightstring'350px'CSS height of the chart container
widthstring'100%'CSS width of the chart container
titlestring-Chart title displayed above the chart
loadingbooleanfalseShow a loading spinner overlay
ariaLabelstring-Accessible label for screen readers

Color Palettes

Charts support named color palettes via the colors config property. Pass a palette name string or a custom array of hex colors.

PaletteDescription
defaultBalanced palette suitable for most use cases
vibrantHigh-saturation colors for emphasis
pastelSoft, muted tones for lighter designs
monochromeShades of a single hue
earthWarm, natural tones (browns, greens, ambers)
oceanCool blues and teals
sunsetWarm gradient from orange to purple
corporateProfessional, subdued palette for business dashboards
neonBright, electric colors for dark backgrounds
accessibleHigh-contrast palette optimized for color blindness

Additional Resources