白色指针-分段颜色-仪表盘
<template> <div class="tu" id="dashBoard"></div> </template> <script> export default { name: "dashBoard", components: {}, data() { return { datas: 0, }; }, props: ["data"], watch: { data(n, o) { this.datas = n; this.drawLine(); }, }, created() {}, mounted() { this.drawLine(); console.log(this.datas, "11111111111111111111111"); }, methods: { WidthAdaptive(res) { var windth = window.innerWidth; let fontSize = windth / 7296; return fontSize * res; }, drawLine() { let num = this.datas * 100; // 基于准备好的dom,初始化echarts实例 let myChart = this.$echarts.init(document.getElementById("dashBoard")); let option = { backgroundColor: "transparent", grid: { right: "5%", left: "5%", top: "10%", bottom: "5%", borderWidth: 1, }, xAxis: { show: false, type: "category", data: ["Mon"], }, yAxis: { show: false, type: "value", }, graphic: { elements: [ { type: "image", z: 4, style: { image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbgAAAEJCAYAAADmXDJjAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnQmwZVd1ntdiFJolBiEkJol5DmGwGWKGYBtMHIhxIDbEOBjjYFcghQtwJcEFcSrYFZxUYrtkQ9lgkxTgAHJsx8QUoBgiZklobk3d6tbQUqs1SwwSrNT3tE9z+vS9755z7z7zv6tuvdevz9nDv/c9/9lrr/UvNxUhIAQOQSAi7m1mfO6z4ifX3MvMPH3Kvxd/4yfXFeUHZhbpU/69+Bs/+Tuf75vZ3enD78W/D/x097s0hUJACByKAF88FSEwOwQigrV/PzO7f+VzWPo7RDWmAgl+x8y+W/24O/+nIgRmh4AIbnZTPq8BRwQk9gAzg7iqZLYdGOyeIIZDdkyVHRXXFDuu8g6suhsLd+dvFhHLdnnVvy/aRS7aUfK3VWMpkx+/8/m2uzNOFSEwSQREcJOc1vkNKiIgr4LIILPi92U7McgG0155x3OABMb24I+I+y7YiRaEXjaPVhfH9xLZbRFe8bt2ffP7Dk1xxCK4Kc7qxMcUERDYkekDkR2+zZAL0x0Pb8hsi8TcnZ+zKBHBDq+8ey3In5/LCriB2R1mdjsfd2c3qyIERoOACG40UzXPjqaz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jjABjmz31t3UERHCtQ6wGho5AykZwQjJbjsEJhWDtfWaGpqRi24a+wNS/3hAQwfUGvRoeGgKJ6NjRQXZD3NEVxMaOTYokQ1tA6s/gEBDBDW5K1KG+EUgqKAXRtZljru5QITOyD7BjE7HVRU3XzR4BEdzsl4AA2A6BtKsjWziSX0c1SImzKbC3mRlekTe5+12bVqb7hcAcERDBzXHWNea1EEghBpDc0enzgLUqWnwTnpC3Fh+5+mdEVlXNFgER3GynXgPfFIG0uyPpaflTx0kF78fvlD9yFtl0NnS/EDgUgf8PiYmk07ePn68AAAAASUVORK5CYII=", width: this.WidthAdaptive(280), height: this.WidthAdaptive(160), }, left: "center", top: "50%", silent: true, }, ], }, series: [ { name: "任务完成率", type: "gauge", center: ["50%", "70%"], radius: "65%", min: 0, max: 100, splitNumber: 5, startAngle: 180, endAngle: 0, zlevel: 0, z: 9, data: [ { value: num, name: "压力(Pa)", itemStyle: { color: "#fff", }, }, ], detail: { formatter: function (params) { return "设备在线率"; }, fontSize: this.WidthAdaptive(50), color: "#ccc", }, legend: { padding: 0, margin: 0, }, pointer: { show: true, length: "75%", radius: "50%", width: "2.5%", //指针粗细 }, title: { // 仪表盘标题。 show: false, // 是否显示标题,默认 true。 }, markLine: { precision: 2, }, axisTick: { show: true, splitNumber: 1, lineStyle: { width: 1, color: "rgba(255,255,255,.7)", }, length: -8, }, //刻度样式 splitLine: { show: true, length: -14, lineStyle: { color: "transparent", //用颜色渐变函数不起作用 }, }, //分隔线样式 axisLabel: { show: true, color: "#fff", distance: -40, fontSize: this.WidthAdaptive(30), }, axisLine: { // 坐标轴线 lineStyle: { // 属性lineStyle控制线条样式 width: this.WidthAdaptive(40), // 仪表盘宽度 color: [ [0.2, "#0052A1"], [0.4, "#217EC4"], [0.6, "#20A6E4"], [0.8, "#FFB300"], [1, "#FFDC00"], ], }, }, }, { name: "小圆形", type: "pie", hoverAnimation: false, legendHoverLink: false, zlevel: 0, center: ["50%", "70%"], radius: ["0%", "6%"], tooltip: { show: false, }, z: 10, label: { normal: { show: false, position: "center", }, emphasis: { show: false, }, }, labelLine: { normal: { show: false, }, }, data: [ { value: 100, name: "2", itemStyle: { normal: { color: "#fff", }, }, }, ], }, ], }; window.onresize = function () { myChart.resize(); }; myChart.setOption(option); }, }, }; </script> <style scoped> .tu { width: 100%; height: 100%; } </style>