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.
 
 
 
Achilles Rasquinha 2e8e89a9e4 update README.md, segregate assets, add .DS_Store to .gitignore 7 years ago
.github update README.md, segregate assets, add .DS_Store to .gitignore 7 years ago
dist update dual configs in rollup, add styles to $.create() 7 years ago
docs update index.html 7 years ago
src refactor(charts.js): use key value map for handling chart types 7 years ago
.babelrc add babel, eslint; dom and utils modules 7 years ago
.eslintrc.json add babel, eslint; dom and utils modules 7 years ago
.gitignore update README.md, segregate assets, add .DS_Store to .gitignore 7 years ago
LICENSE Initial commit 7 years ago
Makefile update README.md, segregate assets, add .DS_Store to .gitignore 7 years ago
README.md update README.md, segregate assets, add .DS_Store to .gitignore 7 years ago
package-lock.json add css compiler, watcher and livereload 7 years ago
package.json update dual configs in rollup, add styles to $.create() 7 years ago
rollup.config.js update dual configs in rollup, add styles to $.create() 7 years ago

README.md

Frappé Charts

A zero-dependency GitHub-inspired modern, intuitive and responsive charting library

Explore the Demos »

Table of Contents

Installation

  • Install via npm:
    $ npm install frappe-charts
    
  • ... or include in your HTML
  <script src="https://raw.githubusercontent.com/frappe/charts/master/dist/frappe-charts.min.js"></script>

Usage

const data = {
    labels: ["12 A.M. - 3 A.M.", "3 A.M. - 6 P.M.", "6 A.M. - 9 A.M",
        "9 A.M. - 12 A.M.", "12 P.M. - 3 P.M.", "3 P.M. - 6 P.M.",
        "6 P.M. - 9 P.M.", "9 A.M. - 12 A.M."
    ],
    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