Simple, responsive, modern SVG Charts with zero dependencies
Simple, responsive, modern SVG Charts with zero dependencies
Frappe Charts is a simple charting library with a focus on a simple API. The design is inspired by various charts you see on GitHub.
ERPNext needed a simple sales history graph for its user company master to help users track sales. While using c3.js for reports, the library didn’t align well with our product’s classic design. Existing JS libraries were either too complex or rigid in their structure and behavior. To address this, I decided to create a library for translating value pairs into relative shapes or positions, focusing on simplicity.
npm install frappe-chartsImport in your project:
import { Chart } from 'frappe-charts'
// or esm import
import { Chart } from 'frappe-charts/dist/frappe-charts.esm.js'
// import css
import 'frappe-charts/dist/frappe-charts.min.css'Or directly include script in your HTML
<script src="https://unpkg.com/[email protected]/dist/frappe-charts.min.umd.js"></script>…cd into project directorynpm installnpm i npm-run-all -D (optional --> might be required for some developers)npm run devA chart with two y axes
Overlapping of dashboard legend
Legend overflow through the screen and doesn't create new line
Search bar alignment and GitHub icon issue in header
How do i make the chart responsive? aka take the parents height
The display of the y-axis is not truncated even if the data is more than 100,000,000.
Missing legend causes uncaught errors when updating data.
how to implement a horizontal bar?
100's of js errors - Error: <rect> attribute width: A negative value is not valid
Is the CSS needed?