js代码
<script src="jquery-1.11.2.min.js"></script> <script src="echarts-3.6.js"></script> <script type="text/javascript"> $(function () { $(".legendShow").css({"top":$(window).height()/5-100,"left":50}); $("#div_pie").height($(window).height()); $("#div_pie").width($(window).width()); var chart = echarts.init(document.getElementById('div_pie'), null, { renderer: 'canvas' }); chart.setOption({ angleAxis: { axisLabel: { formatter: function (value, index) { return value * 33500 / 100; } } }, radiusAxis: { type: 'category', data: ["2.07%", "15.53%", ""], z: 10 }, textStyle: { color: "#104490", fontSize: 16, fontStyle: 900 }, polar: { }, series: [ { type: 'bar', itemStyle: { normal: { color: '#1d94bc' } }, data: [ { value: 100 * 736 / 35500 }, { value: 100 * 5513 / 35500, show: false, itemStyle: { normal: { color: 'rgb(134, 151, 34)' } }, }, { value: 100, show: false, itemStyle: { normal: { color: '#FFAA25' } } } ], coordinateSystem: 'polar', name: '总计划', stack: 'a' }], legend: { legend: { show: true, data: ["总计划"], } } }); }); </script>
在线预览
资源均来自第三方,谨慎下载,前往第三方网站下载