echarts扇形图


         <div class="bottom-center" id="reportCustomerAbnormal" style="width:400px;height:300px;" > </div>drawLine2() {let reportCustomerAbnormal =this.$echarts.init(document.getElementById('reportCustomerAbnormal'))var title = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l']var data = [117, 75, 53, 51, 37, 36, 56, 9, 28, 0, 1, 5]var maxData =  [{ name: 'a', max: '100' }, { name: 'b', max: '100' },  { name: 'c', max: '100' },{ name: 'd', max: '100' },{ name: 'e', max: '100' },  { name: 'f', max: '100' }, { name: 'g', max: '100' }, { name: 'h', max: '100' }, { name: 'i', max: '100' },  { name: 'j', max: '100' }, { name: 'k', max: '100' }, { name: 'l', max: '100' },]reportCustomerAbnormal.setOption({backgroundColor: '#031845',title: {text: '',x: 'center',y: 'top',top: '5%',textStyle: {color: '#fff',fontSize: 16,fontWeight: 'normal'}},tooltip: {show: true,trigger: "item",formatter: function (params, ticket, callback) {var tooltipHtml = '<table>';for (var i = 0; i < title.length; i++) {// tooltipHtml += title[i] + ':' + data[i] + ';' + '<br/>'tooltipHtml += '<tr>';tooltipHtml += '   <td style="text-align:right; width:80px;">' + title[i] + ':</td>';tooltipHtml += '    <td style="text-align:left;">' + data[i] + '</td>';tooltipHtml += '</tr>';}tooltipHtml += '</table>';return tooltipHtml;}},radar: {center: ["50%", "50%"],radius: "70%",startAngle: 100,splitNumber: 4,shape: "circle",splitArea: {areaStyle: {color: ["transparent"]}},axisLabel: {show: false,fontSize: 18,color: "#fff",fontStyle: "normal",fontWeight: "normal"},axisLine: {show: true,lineStyle: {color: '#fff'}},splitLine: {show: true,lineStyle: {color: '#fff'}},indicator: maxData},series: [{name: "",type: "radar",symbol: "circle",symbolSize: 5,itemStyle: {normal: {color: 'rgba(255, 173, 255, 1)'}},areaStyle: {normal: {color: "rgba(19, 173, 255, 0.5)"}},lineStyle: {normal: {color: "rgba(19, 173, 255, 1)",width: 2,type: "dashed"}},data: [data],}]})
},

echarts扇形图相关推荐

  1. React+eCharts扇形图

    今天想封装一个扇形图,表示各类数据的情况.效果如下图: 这一类扇形图由几个部分构成: 刻度线 分类 圆心 圆心 在options对象中的polar属性表示圆心特征.如下代码,其中20表示中间小圆的大小 ...

  2. echarts扇形图(饼图)常用的配置

    1.效果图: 2.完整代码:(可以直接贴到echarts官网进行测试查看效果) option = {tooltip: {trigger: 'item',formatter: '{a} <br/& ...

  3. uniapp 微信小程序端echarts扇形图

    github地址:https://github.com/yah0130/echarts-wx-uniapp 插件地址:echarts-for-wx - DCloud 插件市场 具体流程参考github ...

  4. hdc mfc 画扇形图_使用echarts绘制条形图和扇形图

    使用echarts绘制条形图和扇形图 简单举例说明下echarts如何绘制条形图和扇形图 代码示例 echarts绘制条形图和扇形图 var mychart1=echarts.init(documen ...

  5. 【Echarts 绘制柱状图、折线图和扇形图】

    1. 柱状图和折线图 柱状图和折线图的基本内容完全一致,只需要将option中的series的type: 'bar' 修改type: 'line',就可以将柱状图转化为折线图. initEchart( ...

  6. Echarts使用扇形图时图形会意外崩溃

    当我们使用扇形图时会发现在一些情况下图形会改变样式. 这是设置的扇形: 出现的bug情况: 仔细观察一下就会发现貌似出现问题时所有的数据都是0.这也就是出现问题的原因.因此我们进行判断当所有数据都为0 ...

  7. 前端之扇形图实现案例

    1.利用echarts实现 直接上源码 <!DOCTYPE html> <html lang="en"> <head><meta char ...

  8. echart 扇形图,玫瑰图配置说明

    echart 扇形图,玫瑰图配置说明 先看效果 配置说明 官方配置说明: https://echarts.apache.org/zh/option.html#series-pie option :{l ...

  9. echarts混合图、省份地图、中国地图、环形图

    最近工作上用到的几种echarts图表样例,在此记录下: <!DOCTYPE html> <html lang="en"> <head>     ...

最新文章

  1. 中兴V880使用手记之五——刷入recovery
  2. 互联网+和创业潮,互联网+前提条件是什么?互联网+做什么?
  3. python代码由CPU - >GPU
  4. linux shell用户交互,鱼 - 一个明智的和用户友好的交互式shell为Linux
  5. 2018年最受大家欢迎的五大机器学习工具和五大数据学习工具
  6. 编程体系结构(07):JavaEE之Web开发
  7. 每秒处理1000万用户请求…云上架构如何实现高性能和高可用
  8. ShellCode初体验
  9. Intel保护机制:特权级别:Protection Rings
  10. Dubbo入门和应用
  11. Python包管理整理:setuptool管理python相关的包
  12. Pycharm导入MySQL驱动包误区
  13. 关于mac打开互联网下载应用提示的解决方法
  14. win10安装时有个修复计算机,电脑开机提示自动修复怎么办?win10电脑开机提示自动修复教程...
  15. ubuntu下的chm阅读器
  16. [区块链]DPoS(委托权益证明机制)官方共识机制详解——BTS、EOS
  17. 20P27 Premiere预设70种超酷电影级白天黑夜调色预设模板
  18. windows如何查看内存条型号信息cpu型号信息 # 包括 内存条个数 和 cpu个数
  19. 关于九宫格的一个算法,求大神助攻
  20. 大数据之“用户行为分析

热门文章

  1. Android 2.3 Gingerbreader 正式发布,向游戏开发者献媚
  2. 小米实习面试总结(1)
  3. 抖音同城怎么引流?抖音如何引流到线下实体店?
  4. ECCV2022 | 生成对抗网络GAN论文汇总(图像转换-图像编辑-图像修复-少样本生成-3D等)...
  5. 货来,速抢 — 天选 2 首发评测
  6. 女神节快乐!Apache Pulsar 愿大家拥抱机遇、享受开源
  7. 别被漫画骗了..棋魂真正的结局是....
  8. STM32-深入理解GPIO的8种工作模式
  9. matlab中的可变电阻怎么接,可调电阻器的接线方法
  10. 【云计算 | Openstack】KVM虚机通过dhcp自动获取地址