【可视化机房大屏】主体白色风格vue2

机房设备监控大屏

drawEchartsRadar(str) {
			this.echartsObj[str] = echarts.init(this.$refs[str]);
			const option = {
				title: {
					text: "",
				},
				grid: {
					left: "15%",
					top: "15%",
					bottom: "15%",
					right: "15%",
				},
				tooltip: {
					trigger: "item",
				},
				legend: {
					data: ["Allocated Budget", "Actual Spending"],
				},
				radar: {
					// shape: 'circle',
					radius: "56%",
					axisLabel: {
						color: "#1f1f1f",
					},
					indicator: [
						{ name: "变位报警", max: 6500 },
						{ name: "越报警上限", max: 16000 },
						{ name: "越报警下限", max: 30000 },
						{ name: "Ai报警", max: 38000 },
						{ name: "越预警下限", max: 52000 },
						{ name: "越预警上限", max: 25000 },
					],
				},
				series: [
					{
						name: "变位报警",
						type: "radar",
						symbolSize: 8,
						itemStyle: {
							color: "#539ce8",
						},
						label: {
							color: "#fff",
						},
						lineStyle: {
							color: "#104fdd",
						},
						areaStyle: {
							color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
								{ offset: 0.3, color: "#539ce8" },
								{ offset: 1, color: "#104fdd" },
							]),
						},
						data: [
							{
								value: [4200, 3000, 20000, 35000, 50000, 18000],
								name: "越报警",
							},
						],
					},
				],
			};
			this.echartsObj[str].setOption(option, true);
		},
  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值