Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Web docs

Data visualization / Guide

Set up Lumen charts

Install and configure accessible Lumen charts in Astro, React, or Web Components.

03 / Set up

One import. Your framework.

Charts ship with the existing Lumen packages. Install the adapter you use and load its complete stylesheet once. No additional chart package is needed.

astro
---
// pnpm add @santi020k/lumen-astro
// In your root layout:
import '@santi020k/lumen-astro/styles.css'
import UIPrimitives from '@santi020k/lumen-astro/runtime'
---

<slot />
<UIPrimitives />

Complete setup: Astro · React · Web Components. In a React Server Components app, keep formatter functions inside a client component; they cannot cross a server-to-client boundary.

Explore all 16 chart guides →

Web docsFull catalog