ali
2024-09-03 0ae83a895e80a4b9777a27f613d721a7e5e2ac18
energy_management_ui/src/views/dashboard/PieChart.vue
@@ -6,6 +6,7 @@
import echarts from "echarts";
require("echarts/theme/macarons"); // echarts theme
import resize from "./mixins/resize";
import { color } from "echarts/lib/export";
export default {
  mixins: [resize],
@@ -24,7 +25,7 @@
    },
    height: {
      type: String,
      default: "363px"
      default: "300px"
    },
    chartData: {
      type: Array,
@@ -80,7 +81,10 @@
          left: this.legend == "right" ? "auto" : "center",
          top: "0",
          right: this.legend == "right" ? "40" : "auto",
          orient: this.legend == "right" ? "vertical" : "horizontal"
          orient: this.legend == "right" ? "vertical" : "horizontal",
          textStyle: {
            color: "#fff"
          }
          // data: ["Industries", "Technology", "Forex", "Gold", "Forecasts"]
        },
        label: {