Product Scope Charts

These started as the charts inside one of my own apps. I pulled them out, swapped in made-up data and published them under the MIT licence so anyone building a dashboard, report or admin screen can reuse them without taking on a charting library. The source is on GitHub.

About the charts

Each chart is a JavaScript function that takes arrays of numbers and a few options and draws plain SVG. The toolkit code is one stylesheet and one script, with no dependencies and no external requests, so it runs under a strict content security policy. Colours, font and corner radius come from CSS variables, so it follows your theme, light or dark.

Every chart page gives you when to use it, a live demo, the options and a snippet to paste. The charts handle empty data, a single data point and outliers, can be used from the keyboard and can be shown as a table.

The dashboard is a worked example: ten of the twenty-four charts on one page, wired to made-up data. Claude built it, and the charts. The function signatures are small and regular, so the same approach works for your own dashboards: give an AI assistant the toolkit, describe your data and ask it to build the page.

All twenty-four charts

Each page has a live demo you can change, a copyable snippet and the options. Jump to a group or scroll through them all.

Questions people ask

There is nothing to install and nothing to keep updating, and it takes three steps. First, copy the code from the Get the code page into your page: the design tokens, a few small helpers, one block of CSS and one script. Second, call a chart function such as lineChart with your data and add the result to the page; every chart page has a snippet to start from. Third, make it yours by pointing the design tokens at your own theme, or by asking an AI assistant to build the dashboard for you. If you need something other than pounds, pass your own number formatters.

Get the code
What are these charts for?

They are for the dashboards, reports and admin screens inside a product: how a number moves over time, how a total breaks down, what needs attention and what to do next. Each chart page says when to use that chart and when not to.

Can I use them to build a dashboard with an AI assistant?

Yes, and that is how this site was made. Give an assistant such as Claude the toolkit page, describe what the dashboard should show and where the data comes from, and ask it to build the page with these charts. Each chart takes plain arrays and a few options, so it can connect them to your own data and restyle them with the design tokens. Check what it produces, as you would with any code, and test it with a keyboard and a screen reader.

Can I use it commercially?

Yes. The code is open source under the MIT licence, so you can use, copy and change it in your own projects, including commercial ones. Keep the licence notice with the code. The fonts on this site are under the SIL Open Font License.

How do I change the currency?

Currency defaults to pounds, in compact(), money0 and gbp. Most charts take yfmt, tipfmt or fmt options to format numbers your way. Calendar, treemap, gauge, waterfall and flow have no such option, so change those three helpers for another currency.

Is it accessible?

Every chart can be reached with the keyboard, has a screen-reader label and can be shown as a data table. There is an option to use patterns instead of colour. If you find a problem, please open an issue on GitHub.

Was this built with AI?

Yes. Claude built all twenty-four charts and the mock-up dashboard, working from my direction. It is the same AI-assisted approach I use on products and reporting for clients, such as the Jira time reporting dashboard I built with Claude.

Want charts or dashboards like these in your own product?

Tell me what you are trying to see and I can help work out the right approach, from the data behind it to the screen in front of people.