ECharts  环形饼图 动态获取json数据

效果图如下:

ECharts  环形饼图 动态获取json数据_ECharts

一.html部分

  

二.js部分

三.json格式如下:

{"list":[{"department":"和平区","num":480},{"department":"河西区","num":380},{"department":"河东区","num":366},{"department":"河北区","num":320},{"department":"南开区","num":300}]}