Chart.js

Frontend

Chart.js is an open-source JavaScript charting library, and I use it in dashboards for revenue, costs, profit and business statistics.

How I use Chart.js

It draws line, bar, pie and other charts on a canvas element and adapts to the screen width on its own.

Business owners see their numbers as a picture: a weaker month or the product bringing in the most revenue stands out right away. Charts work on phones too, showing values when you hover over or tap a point.

When I use it, I prepare the data on the server and send the chart totals per day or month instead of thousands of individual rows. I match colors and labels to the rest of the interface and to dark mode. I don't currently have a public portfolio project built on Chart.js, so I count it among the tools I use less often.

For standard charts Chart.js is a quick choice, and when something fully custom is needed I consider D3.js. The data usually comes from Supabase, and reports can be exported to PDF or Excel when needed.

Frequently asked questions about Chart.js

What is Chart.js used for?

Chart.js is a JavaScript library for drawing charts on a web page: line, bar, pie, radar and more. It's used for dashboards, reports and statistics, and the charts are interactive and adapt to the screen.

Is Chart.js free?

Yes, Chart.js is open source under the MIT license and free to use, including in commercial projects. For React there's also the react-chartjs-2 wrapper, which makes it easier to use in components.

Can you build a dashboard with charts?

I can, and for standard views like monthly revenue and costs Chart.js is one of the tools I use. I don't currently have a public portfolio project built on it, so I count it among the tools I use less often.

All skills →