echarts-liquidfill

echarts-liquidfill_第1张图片
一个简单案例:

function  initDrawing() {
    var myChart = echarts.init(document.getElementById('divId));
    var option = {
        series: [{
            type: 'liquidFill',
            data: [0.64,0.3,0.2],
            radius:'65%',
            center: ['50%', '50%'],
            roseType: 'radius',
            outline: {
                show: false
            }
        }],
        tooltip: {
            show: true
        }
    };
    myChart.setOption(option);
};


//引入js:
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts-all-3.js">script>
<script src='/static/produce/js/echarts.js'>script>
<script src='/static/produce/js/echarts-liquidfill.min.js'>script>

js下载地址:

  1. https://github.com/gityuting/echarts-liquidfill.git
  2. echarts官网>>下载

你可能感兴趣的:(echarts)