11 2024 档案
摘要:实现同一组legend控制两个饼图示例,代码如下: var options = { title: [ { text: '保管'+ '\n' +'专业', x: "center", y: "center", left: "23.5%", top: "28%", textAlign: "center",
阅读全文
摘要:基于 Vue2 + Vant2 组件库实现 : 废话不多说,直接看代码 : 主要代码 : methods: { // 上传图片之前的操作 beforeRead(file) { let arr = file.name.split('.'); let fileType = '.' + arr[arr.l
阅读全文
摘要:在做echarts柱图的时候,有时候可能会有下转或者一些点击功能,一般会使用 myChart.on('click',function(){//执行代码}) 去实现功能,但是,有的时候,会出现某个柱子数据太少,可能会点不到,这是可以使用 myChart.getZr().on('click',funct
阅读全文