Bar Chart
Compare values across categories. Includes a hover tooltip.
Every file here was written and tested for visx.app. The starter kit is a working Vite + React + TypeScript project built on visx 4.0.0. You can also grab a single chart component or the sample data on its own.
A Vite + React + TypeScript project with all twelve chart components, sample data and a README. Run npm install, then npm run dev.
Each file is a self-contained React component. It imports types.ts and theme.ts from the starter kit, so copy those two files alongside it.
Compare values across categories. Includes a hover tooltip.
Show a trend over ordered steps such as months.
A smooth trend line with a soft gradient fill.
Rankings and long category names read better sideways.
Parts of a whole when you have a few slices.
A pie with the total shown in the centre.
Position and dot size both encode the value.
A lighter bar chart for many categories.
Values that change at discrete moments.
Compare several dimensions on one scale.
Colour intensity shows the value, like a mini heatmap.
An axis-free trend for KPI tiles and tables.
visx-react-starter.zip anywhere on your computer.npm install. Yarn and pnpm work too.npm run dev and open the local address Vite prints, usually http://localhost:5173.data/sample-data.json and watch every chart update.The full walkthrough, including troubleshooting, is in our visx guide.
.tsx, .ts, .json, .csv, .md and one .html.npm install.visx itself is maintained by Airbnb on GitHub. For the library's own source, use the official repository.