|
hace 7 años | |
---|---|---|
.github | hace 7 años | |
dist | hace 7 años | |
docs | hace 7 años | |
src | hace 7 años | |
.babelrc | hace 7 años | |
.eslintrc.json | hace 7 años | |
.gitignore | hace 7 años | |
.travis.yml | hace 7 años | |
LICENSE | hace 7 años | |
Makefile | hace 7 años | |
README.md | hace 7 años | |
package-lock.json | hace 7 años | |
package.json | hace 7 años | |
rollup.config.js | hace 7 años | |
yarn.lock | hace 7 años |
GitHub-inspired modern, intuitive and responsive charts with zero dependencies
Explore Demos »Install via npm
:
$ npm install frappe-charts
and include in your project:
import Chart from "frappe-charts/dist/frappe-charts.min.esm"
...or include within your HTML
<script src="https://cdn.jsdelivr.net/npm/frappe-charts@1.0.0/dist/frappe-charts.min.iife.js"></script>
<!-- or -->
<script src="https://unpkg.com/frappe-charts@1.0.0/dist/frappe-charts.min.iife.js"></script>
const data = {
labels: ["12am-3am", "3am-6pm", "6am-9am", "9am-12am",
"12pm-3pm", "3pm-6pm", "6pm-9pm", "9am-12am"
],
datasets: [
{
title: "Some Data", type: "bar",
values: [25, 40, 30, 35, 8, 52, 17, -4]
},
{
title: "Another Set", type: "line",
values: [25, 50, -10, 15, 18, 32, 27, 14]
}
]
}
const chart = new Chart("#chart", { // or a DOM element
title: "My Awesome Chart",
data: data,
type: 'axis-mixed', // or 'bar', 'line', 'scatter', 'pie', 'percentage'
height: 250,
colors: ['#7cd6fd', '#743ee2']
})
If you want to contribute:
cd
into project directorynpm install
npm run dev
This repository has been released under the MIT License
Project maintained by Frappe. Used in ERPNext. Read the blog post.