Skip to content

Agala Charts

@agala-labs/charts is the ECharts-powered companion to Agala UI. It ships separately so applications that do not visualize data avoid the chart runtime.

bash
npm install @agala-labs/charts echarts vue-echarts
vue
<script setup lang="ts">
import { BaseChart } from '@agala-labs/charts'
</script>

<template>
  <BaseChart
    type="line"
    :labels="['Jan', 'Feb', 'Mar', 'Apr']"
    :datasets="[{ name: 'Revenue', data: [120, 190, 165, 240] }]"
    :height="300"
  />
</template>
Preview theme

The same BaseChart component renders all supported chart families. Colors and supporting surfaces are read from Agala tokens.

Supported visualizations

VisualizationConfiguration
Linetype="line"
Bartype="bar"
Pietype="pie" with one dataset
Scattertype="scatter" with [x, y] pairs
Radartype="radar" with indicators
Gaugetype="gauge" with one value and optional maximum
Stacked bartype="bar" stacked
Stacked areatype="line" stacked with areaStyle datasets

See the BaseChart API for the precise runtime contract and known limitations.

Released under the MIT License.