No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
pratu16x7 3520047511 update PR template hace 7 años
.github update PR template hace 7 años
dist add 'parent not specified' error hace 7 años
docs add 'parent not specified' error hace 7 años
src add 'parent not specified' error hace 7 años
.babelrc add babel, eslint; dom and utils modules hace 7 años
.eslintrc.json add babel, eslint; dom and utils modules hace 7 años
.gitignore update README.md, segregate assets, add .DS_Store to .gitignore hace 7 años
LICENSE Initial commit hace 7 años
Makefile update README.md, segregate assets, add .DS_Store to .gitignore hace 7 años
README.md Update README hace 7 años
package-lock.json add css compiler, watcher and livereload hace 7 años
package.json update dual configs in rollup, add styles to $.create() hace 7 años
rollup.config.js update dual configs in rollup, add styles to $.create() hace 7 años

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
    
  • ...or include within your HTML

      <script src="https://raw.githubusercontent.com/frappe/charts/master/dist/frappe-charts.min.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',
    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

This repository has been released under the MIT License


Made with ♥ by pratu16x7. Project maintained by frappe