scharts
v0.0.8
Published
simple svg charts.
Downloads
6
Readme
scharts
simple svg scharts.
demo
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
});