Echarts 饼图

Javascript

require('../../plugins/echarts/module');

var chart = $p.echarts("my_chart", {
    type: "pie"
});

chart.load({
    name: '访问来源',
    data: [{
        value: 735,
        name: '百度'
    }, {
        value: 310,
        name: '谷歌'
    }, {
        value: 234,
        name: '360搜索'
    }, {
        value: 135,
        name: '搜狗'
    }, {
        value: 548,
        name: '必应'
    }, {
        value: 148,
        name: '雅虎'
    }, {
        value: 114,
        name: '网易有道'
    }],
});

基于版本

[v3.2.3] https://github.com/ecomfe/echarts/tree/3.2.3

更多实例

http://echarts.baidu.com/examples.html