Skip to content
/ charts Public
forked from frappe/charts

Simple, responsive, modern SVG Charts with zero dependencies:

License

Notifications You must be signed in to change notification settings

intfrr/charts

 
 

Repository files navigation

GitHub-inspired simple and responsive charts with zero dependencies.

More information at the website: https://frappe.github.io/charts
Core build: ~14kb gzipped

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

About

Simple, responsive, modern SVG Charts with zero dependencies:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.5%
  • CSS 10.5%