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 17955256d4 update docs 7 年之前
.github [fix] heatmap data 7 年之前
dist update docs 7 年之前
docs update docs 7 年之前
src rebuild sources 7 年之前
.babelrc add babel, eslint; dom and utils modules 7 年之前
.eslintrc.json add babel, eslint; dom and utils modules 7 年之前
.gitignore ignore yarn.lock 7 年之前
LICENSE Initial commit 7 年之前
Makefile update README.md, segregate assets, add .DS_Store to .gitignore 7 年之前
README.md update docs 7 年之前
package-lock.json include zero values in the tooltip 7 年之前
package.json update to 0.0.3 7 年之前
rollup.config.js Merge branch 'master' into support-react 7 年之前

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.3/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',
    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


Made with ♥ by pratu16x7. Awesome logo by raghukamath. Project maintained by frappe.