Frappe
Products
Charts
Get started with Charts
Frappe Charts
Frappe Charts started off as the sales graph in ERPNext. It draws clean SVG charts with zero dependencies and a small, simple API: bar, horizontal bar, line, mixed, donut, pie, percentage and heatmap.
And it is free! Charts is and will always be completely open source under the MIT license.
Try it! Switch the chart type, hover a column to see every value in it, or export the chart as an SVG.
Update data in place
Add or remove a data point, or swap in new values, and the chart animates to its new shape.
Use addDataPoint, removeDataPoint and update. No need to redraw the chart.
Plan against actual
Draw a plan as a dashed line with lineOptions.dashed, and mark today with xMarkers.
Each dataset can have its own line options. With showGaps, the actual line stops at today instead of dropping to zero.
Horizontal bars
Set barOptions.horizontal to draw one row per label, with the value at the end of each bar.
Long labels stay readable. Show one dataset, several side by side, or stack them with barOptions.stacked.
Donut
Slices are rounded and spaced apart. Hover a slice or a legend item to bring it forward.
The center shows the total, or any value you pass in center. onClick tells you which slice was clicked.
Heatmap
Show a year of daily values the way GitHub shows contributions. Pass timestamps and values, and a set of five colors.
Hover a day to see its count.
Everything you need
Everything below works out of the box, and every part can be changed through options.