dchart-bar-stack-hori
v0.1.17
Published
dchart-bar-stack-hori
Downloads
20
Readme
dchart-bar-stack-hori
符合dchart规范的水平堆积图
安装
npm install dchart-bar-stack-hori
用法
var Bar = require('dchart-bar-stack-hori');
var bar = new Bar(container, {
xaxis : {
label : function (obj, data) {return ...}
},
yaxis : {}
});
bar.render([
{x: '电子', y : 22},
{x: '服装', y : 21},
{x: '数码', y : 17},
{x: '医药', y : 12},
{x: '家装', y : 15}
]);