|
@@ -60,12 +60,12 @@ export default {
|
|
|
this.chart = echarts.init(this.$refs.chart);
|
|
|
const data = [{ bluetooth: 32, name: "高新体育中心", wifi: 23 },{ bluetooth: 12, name: "高新体育中心", wifi: 33 },{ bluetooth: 8, name: "高新体育中心", wifi: 3 },];
|
|
|
// 提取x轴数据和蓝牙、wifi数据
|
|
|
- const xAxisData = data.map((item) => item.name);
|
|
|
- const bluetoothData = data.map((item) => item.bluetooth);
|
|
|
- const wifiData = data.map((item) => item.wifi);
|
|
|
- // const xAxisData = this.rightData.map((item) => item.name);
|
|
|
- // const bluetoothData = this.rightData.map((item) => item.bluetooth);
|
|
|
- // const wifiData = this.rightData.map((item) => item.wifi);
|
|
|
+ // const xAxisData = data.map((item) => item.name);
|
|
|
+ // const bluetoothData = data.map((item) => item.bluetooth);
|
|
|
+ // const wifiData = data.map((item) => item.wifi);
|
|
|
+ const xAxisData = this.rightData.map((item) => item.name);
|
|
|
+ const bluetoothData = this.rightData.map((item) => item.bluetooth);
|
|
|
+ const wifiData = this.rightData.map((item) => item.wifi);
|
|
|
// 设置图表的配置项
|
|
|
this.option = {
|
|
|
title: {
|