scharts

0.0.8 • Public • Published

scharts

simple svg scharts.

demo

click here

usage

Include js in /src by tag, or

require('scharts')(['line', ...]);
var lineEl = document.getElementById('line');
var line = schart(lineEl, {
  type: 'line',
  xIndex: {
    line: false
  },
  yIndex: {
    num: 5
  },
  line: {
    point: {
      fill: false,
      radius: 4
    },
    width: 4,
    color: '#ccc'
  }
});

line.render({
  '02-18': 0,
  '02-19': 234,
  '02-20': 634,
  '02-21': 154,
  '02-22': 164
});

Readme

Keywords

none

Package Sidebar

Install

npm i scharts

Weekly Downloads

3

Version

0.0.8

License

MIT

Last publish

Collaborators

  • youngerheart