Menu
Navigation

Make it yours

npx @flitterjs/cli@latest init
npx @flitterjs/cli@latest add bar-chart
Customization code

Replace any part

import { BarChart } from "@/components/charts/bar-chart"

BarChart({
  data,
  custom: {
    bar: ({ value, legend, isHovered }, ctx) => {
      const color = ctx.config.colors.fills[0]
      return Container({
        decoration: new BoxDecoration({ color }),
      })
    }
  }
})

Own the source

src/components/charts/
├── bar-chart/
│ ├── index.ts
│ ├── config.ts
│ └── style/
│ └── parts/
│ ├── bar.ts ← customize here
│ └── tooltip.ts
└── line-chart/
├── index.ts
├── config.ts
└── style/
└── parts/
├── line.ts
└── point.ts

Bitcoin, 2014 to 2024, on Canvas