0.0.4 • Published 8 years ago

dchart-bar-pipe v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

dchart-bar-pipe

符合dchart规范的水管图

安装

npm install dchart-bar-pipe

用法

var Bar = require('dchart-bar-pipe');
var bar = new Bar(container, {
  xaxis: {
    padding: [0.9, 0.4],      //柱状子间的间距[innerPadding, outerPadding],默认[0.9, 0.4]
    dy: 40,                   //位移
  },
  yaxis: {
    min: null                 //默认null会自动计算数据中的最小值
    max: null                 //默认null会自动计算数据中的最大值
  }
});
bar.render([
        {"x": "山东", "y": 100},
        {"x": "山西", "y": 52},
        {"x": "河北", "y": 49}
      ]);
0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago