You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
pratu16x7 e1e7e7fd35 update dual configs in rollup, add styles to $.create() 7 年之前
dist update dual configs in rollup, add styles to $.create() 7 年之前
docs update dual configs in rollup, add styles to $.create() 7 年之前
src update dual configs in rollup, add styles to $.create() 7 年之前
.babelrc add babel, eslint; dom and utils modules 7 年之前
.eslintrc.json add babel, eslint; dom and utils modules 7 年之前
.gitignore add .gitignore 7 年之前
LICENSE Initial commit 7 年之前
README.md update dual configs in rollup, add styles to $.create() 7 年之前
package-lock.json add css compiler, watcher and livereload 7 年之前
package.json update dual configs in rollup, add styles to $.create() 7 年之前
rollup.config.js update dual configs in rollup, add styles to $.create() 7 年之前

README.md

Frappé Charts

GitHub-inspired simple and responsive charts with zero dependencies.

More information at the website: https://frappe.github.io/charts

Usage

Install

npm install frappe-charts

Include it in your html:

<script src="frappe-charts.min.js"></script>

Make a new Chart:

let data = {
  labels: ["12am-3am", "3am-6am", "6am-9am", "9am-12pm",
    "12pm-3pm", "3pm-6pm", "6pm-9pm", "9pm-12am"],

  datasets: [
    {
      title: "Some Data", color: "light-blue",
      values: [25, 40, 30, 35, 8, 52, 17, -4]
    },
    {
      title: "Another Set", color: "violet",
      values: [25, 50, -10, 15, 18, 32, 27, 14]
    }
  ]
};

let chart = new Chart({
  parent: "#chart",
  title: "My Awesome Chart",
  data: data,
  type: 'bar', // or 'line', 'scatter', 'percentage'
  height: 250
});

If you want to contribute:

  1. Clone this repo.
  2. cd into project directory
  3. npm install
  4. npm run dev

License: MIT


Made with ♥ by pratu16x7. Project maintained by frappe