Home

Awesome

<h1 align='center'>Chartify</h1> <p align='center'>React.js plugin for building charts using CSS.</p> <p align='center'> <a href='https://www.npmjs.com/package/chartify'><img src="https://img.shields.io/npm/v/chartify.svg?style=flat-square" alt=""></a> <a href='https://www.npmjs.com/package/chartify'><img src='https://img.shields.io/npm/dm/chartify.svg?style=flat-square' /></a> <a href='https://www.npmjs.com/package/chartify'><img src='https://img.shields.io/npm/dt/chartify.svg?style=flat-square' /></a> <a href='https://github.com/kis/chartify'><img src='https://img.shields.io/travis/kis/chartify/master.svg?style=flat-square' /></a> <a href='https://coveralls.io/github/kis/chartify?branch=master'><img src='https://coveralls.io/repos/github/kis/chartify/badge.svg?branch=master' alt='Coverage Status' /></a> </p>

alt text

The source for this module is in the main repo.
Example app is here.
Backend service for the example app is here.
npm package is here.

<h3 align='center'>Install</h3> <p align="center"> <a href="https://github.com/kis/chartify/blob/master/index.js"> <img src="http://img.badgesize.io/kis/chartify/master/index.js?compression=gzip"> </a> </p>
npm install chartify --save-dev
<h3 align='center'>Getting started</h3>
import Chartify from 'chartify';

const data = [{
    xValue: '20.11.2016',
    yValue: 5,
    title: '007 Spectre'
}];

const config = {
    theme: 'blue',
    width: 50,			      
    height: 10,		
    boxSize: 20,
    isLineChart: false,
    bordered: false
};

<Chartify 
    data={data} 
    container="films-container" 
    config={config} 
/>
<h3 align='center'>Passing props</h3>

Data prop is a dataset that should be an array of objects:
[{ xValue: '12.03.2019', yValue: 8, title: 'men in black' }]

Keys are required and types are:
{ xValue: string, yValue: number, title: string }

Container prop is a class that will be added to the chart container element. This is important in case you have more than one chart on your page.

Config prop is an object with properties:
<b>theme</b>:<i>string</i> - is color scheme of the chart, <i>"default", "blue", "grey", "white"</i> etc.<br/> <b>width</b>:<i>number</i> - is the length of the data array by X-axis.<br/> <b>height</b>:<i>number</i> - is the length of the data by Y-axis.<br/> <b>boxSize</b>:<i>number</i> - is size of each box in pixels.<br/> <b>isLineChart</b>:<i>boolean</i> - is param that determines if this is a line-chart.<br/> <b>bordered</b>:<i>boolean</i> - is param that determines if each box has white borders.<br/>

<h3 align='center'>License</h3>

The MIT License (MIT) Copyright (c) 2020