vue2 + Echarts(4.2.1) 版本

全国地图

在这里插入图片描述

柱状折线图

在这里插入图片描述

饼图

在这里插入图片描述

折线图

在这里插入图片描述

雷达图

在这里插入图片描述

象限图

手写的浮窗

比例盒子+排序

 <block1 :data="completeData" />
 completeData: {
   lrwcl: [100, 90, 80, 70, 60, 50, 40],
   name: ['数据1', '数据2', '数据3', '数据4', '数据5', '数据6', '数据7'],
   srwcl: [40, 50, 60, 70, 80, 90, 100]
 },

在这里插入图片描述

<party-members :data="membersData" />
 membersData: {
   partyMemberFormal: '1',
   partyMemberRetirement: '2',
   partyMemberPrepare: '3',
   partyMemberMan: '4',
   partyMemberJob: '5',
   partyMemberWoman: '6',
   partyMemberTotle: '7'
 },

在这里插入图片描述

<resourcesharing style="height:50%" :data="resourcesharingData" />
resourcesharingData: {
  leaderTalk: 10,
  partyFile: 80
},

在这里插入图片描述

<div style="height;20px;display:flex" @mousemove="handlePopWindow(tipList, 1, 'aside', $event, '标题')" @mouseleave="handlePopWindow(tipList, 0, 'aside', $event, '标题')">
 <span :style="{ width: (tipList[0].value / (tipList[0].value + tipList[1].value + tipList[2].value)) * 100 + '%', 'background-color': tipList[0].color, height: '100%' }">1</span>
  <span :style="{ width: (tipList[1].value / (tipList[0].value + tipList[1].value + tipList[2].value)) * 100 + '%', 'background-color': tipList[1].color, height: '100%' }">2</span>
  <span :style="{ width: (tipList[2].value / (tipList[0].value + tipList[1].value + tipList[2].value)) * 100 + '%', 'background-color': tipList[2].color, height: '100%' }">3</span>
</div>
export default {
data(){
	return {
		tipList: [
	        {
	          name: '数据1',
	          color: '#eda472',
	          value: 10
	        },
	        {
	          name: '数据2',
	          color: '#43c262',
	          value: 30
	        },
	        {
	          name: '数据3',
	          color: '#5082de',
	          value: 50
	        }
	      ],
      popData: {
        left: 0,
        top: 0,
        data: {},
        active: 0,
        name: ''
      },
      isOver: false,
      timeout: null
      }
	},
methods: {
    handlePopWindow(data, active, type, node, name) {
      const self = this
      if (!active) {
        this.isOver = true
      } else {
        this.isOver = false
        clearTimeout(this.timeout)
        this.timeout = null
      }
      if (this.isOver) {
        this.timeout = setTimeout(() => {
          self.popData.active = active
          self.popData.__ob__.dep.notify()
        }, 200)
      } else {
        this.popData.left = node.clientX + 'px'
        this.popData.top = node.clientY + 10 + 'px'
        this.popData.active = active
        this.popData.name = name
        this.popData.data = data
        this.popData.__ob__.dep.notify()
      }
    },
  }
}

在这里插入图片描述

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值