Getting started
Install the chart Vue components and import their public stylesheet:
sh
pnpm add @affino/charts-vuevue
<script setup lang="ts">
import { AffinoTimeSeriesChart } from "@affino/charts-vue"
import "@affino/charts-vue/styles.css"
import type { TimeSeries } from "@affino/charts-core"
const series: TimeSeries[] = [{
id: "revenue",
label: "Revenue",
data: [
{ time: Date.UTC(2026, 0, 1), value: 8400 },
{ time: Date.UTC(2026, 1, 1), value: 9200 },
{ time: Date.UTC(2026, 2, 1), value: 10100 },
],
}]
</script>
<template><AffinoTimeSeriesChart :series="series" title="Monthly revenue" /></template>The time-series component includes a legend, focusable data points, keyboard navigation and a tooltip. See component overview for other chart shapes, and the interactive examples for sample datasets.