0.5.8 • Published 5 years ago

dchart-pie-multi-radius v0.5.8

Weekly downloads
4
License
ISC
Repository
-
Last release
5 years ago

dchart-pie-multi-radius

符合dchart规范的多维饼图

安装

npm install dchart-pie-multi-radius

用法

var Pie = require('dchart-pie-multi-radius');
var pie = new Pie(container, {
    paxis: {
        label : function (d) {
            var s = parseInt(options && options['font-size'] || 10);
            var size = (s && s < 10) ? 10 : s;
            return '<tspan dy="-3" x="0" style="font-size: ' + size + 'px">' + d.y + '%</tspan><tspan x="0" dy="' + size + '" style="font-size: ' + size + 'px">' + d.x + '</tspan>'
        }
    },
    innerArr : [0.6, 0.64, 0.55, 0.695, 0.535, 0.535, 0.7845, 0.593, 0.7347],     //饼图内边距百分比
    outerArr : [0.73, 0.91, 0.99, 0.72, 0.79, 0.679, 0.81, 0.824, 0.7834]         //饼图外边距百分比
});
pie.render([
        {"x": "山东", "y": 100},
        {"x": "山西", "y": 52},
        {"x": "河北", "y": 49}
      ]);
0.5.8

5 years ago

0.5.7

5 years ago

0.5.6

5 years ago

0.5.5

5 years ago

0.5.4

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.4.11

6 years ago

0.4.10

6 years ago

0.4.9

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago