flexcharts

0.0.4 • Public • Published

flex-charts

Simple CSS charts library, using flex-box model

Demo

https://flex-charts.azurewebsites.net/

Available chart types

  • Horizontal bar chart
  • Vertical bar chart

Installation

npm install --save flexcharts

Creating horizontal bar chart

html
<div id="barHorizontal"></div> 
javascript
new flexCharts().barChartHorizontal({
    id: "barHorizontal",
    width: "400px",
    height:"200px",
    categories: ["category #1", "category #2"],
    data: [ 
        [200, 300], [250, 400], [150, 10], [50, 40],
        [500, 300], [280, 120], [500, 300], [280, 120], 
        [500, 300],  [280, 120], [500, 300], [280, 120] 
    ],
    labels: [
        "Jan", "Feb", "Mar", "Apr",
        "May", "Jun", "Jul", "Aug",
        "Sep", "Oct", "Nov", "Dec"
     ]
});

Readme

Keywords

Package Sidebar

Install

npm i flexcharts

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

28.4 kB

Total Files

12

Last publish

Collaborators

  • orenbarnea