What is this?
Frappe Charts is a lightweight JavaScript charting library that renders simple, responsive charts as SVG, with zero dependencies.
Is this a hosted service or a library I embed in my own page?
It's a library: you import it into a project or drop a script tag into your HTML, and charts render as SVG right in the browser.
How do I add it to a project?
Import the installed package, or include the script tag directly in your HTML. To work on the library itself, clone the repo, run npm install, then npm run dev.
Does it pull in any other libraries?
No - zero dependencies is the headline feature, so nothing else has to be installed first.
What kinds of charts can it draw?
Axis charts as bars, lines and areas, plus mixed axis, pie, percentage and heatmap charts. You can annotate charts with x and y markers, highlight regions and add tooltips.
Why did the author build a new charting library instead of using c3.js?
ERPNext needed a simple sales-history graph, but c3.js didn't match the product's classic design and other JS libraries felt too complex or rigid. So the author wrote a small library focused on turning value pairs into simple shapes and positions.
Can I update the data after a chart is already on the page?
Yes - add, remove or update individual data points in place, or refresh the entire dataset. Colors, animations and custom titles are configurable too.
Can I try it without installing anything?
Yes - the README links to live demos, including an editable version on CodeSandbox, so you can experiment in the browser first.
What are similar projects?
uPlot, d3, apexcharts.js, Chart.js, plotly.js, visx, highcharts, G6
Which topics is it in?
chart, graph, zero-dependency, charts, svg, visualization, javascript-library, data-visualization, developers, hacktoberfest, web-development, frontend