Reusable Visualization

Build ONE reusable chart visualization component that receives its data and its settings from the host application instead of fetching them, and declares the fields and config options the host exposes to viewers. Use this whenever a single chart component is reused across many different queries rather than built for one — in Lightdash, the `data_app_viz` app template, also called a "viz". Covers the `useVizContext()` hook, the declaration contract, the config-option vocabulary, and series colours.

lightdash Updated

File contents

lightdash/lightdash/tree/main/sandboxes/data-apps/template/.claude/skills/reusable-visualization commit 9f70960876

Frequently asked questions

npx skillmds@latest add lightdash/reusable-visualization