dchart-bar-with-line

0.7.1 • Public • Published

dchart-bar-with-line

符合dchart规范的折线柱状图

安装

npm install dchart-bar-with-line

用法

var Bar = require('dchart-bar-with-line');
var bar = new Bar(container, {
  xaxis: {
    padding: [0.9, 0.4],      //柱状子间的间距[innerPadding, outerPadding],默认[0.9, 0.4]
    groupPadding: [0.4, 0],   //组内柱子间的间距
    dy: 12,                   //位移
  },
  yaxis: {
    min: null                 //默认null会自动计算数据中的最小值
    max: null                 //默认null会自动计算数据中的最大值
  },
  line: {
    'circle-radius': 5        //折线上圆点的半径
  }
});
bar.render([
        {"x": "山东", "y": 100},
        {"x": "山西", "y": 52},
        {"x": "河北", "y": 49}
      ]);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.7.10latest

Version History

VersionDownloads (Last 7 Days)Published
0.7.10
0.7.00
0.6.241
0.6.230
0.6.220
0.6.210
0.6.200
0.6.190
0.6.181
0.6.170
0.6.160
0.6.150
0.6.130
0.6.120
0.6.110
0.6.101
0.6.92
0.6.80
0.6.70
0.6.60
0.6.50
0.6.40
0.6.30
0.6.20
0.5.250
0.5.240
0.5.230
0.5.220
0.5.210
0.5.200
0.5.190
0.5.180
0.5.160
0.5.150
0.5.140
0.5.130
0.5.120
0.5.110
0.5.100
0.5.90
0.5.80
0.5.70
0.5.60
0.5.50
0.5.40
0.5.30
0.5.20
0.5.10
0.5.01
0.4.10
0.4.00
0.3.10
0.3.00
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.0.200
0.0.190
0.0.180
0.0.170
0.0.160
0.0.150
0.0.140
0.0.130
0.0.120
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i dchart-bar-with-line

Weekly Downloads

6

Version

0.7.1

License

ISC

Unpacked Size

21.8 kB

Total Files

3

Last publish

Collaborators

  • elvira
  • theseue
  • grace.hw