Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
pratu16x7 cf834fde94 add all zero special case: default 5 intervals il y a 7 ans
.github [fix] heatmap data il y a 7 ans
dist add all zero special case: default 5 intervals il y a 7 ans
docs add all zero special case: default 5 intervals il y a 7 ans
src add all zero special case: default 5 intervals il y a 7 ans
.babelrc rebuild, update to 0.0.4 il y a 7 ans
.eslintrc.json add babel, eslint; dom and utils modules il y a 7 ans
.gitignore ignore yarn.lock il y a 7 ans
LICENSE Initial commit il y a 7 ans
Makefile update README.md, segregate assets, add .DS_Store to .gitignore il y a 7 ans
README.md build version 0.0.5 il y a 7 ans
package-lock.json add all zero special case: default 5 intervals il y a 7 ans
package.json add all zero special case: default 5 intervals il y a 7 ans
rollup.config.js Merge branch 'master' into support-react il y a 7 ans

README.md

Frappé Charts

GitHub-inspired modern, intuitive and responsive charts with zero dependencies

Explore Demos »

Contents

Installation

  • 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://unpkg.com/frappe-charts@0.0.5/dist/frappe-charts.min.iife.js"></script>
    

Usage

const data = {
    labels: ["12am-3am", "3am-6pm", "6am-9am", "9am-12am",
        "12pm-3pm", "3pm-6pm", "6pm-9pm", "9am-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]
        }
    ]
}

const chart = new Chart({
    parent: '#chart', // or a DOM element
    title: "My Awesome Chart",
    data: data,
    type: 'bar', // or 'line', 'scatter', 'pie', '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

This repository has been released under the MIT License


Project maintained by Frappe. Used in ERPNext. Read the blog post.