/*
 * @Author: zk
 * @Date: 2021-09-16 16:20:11
 * @LastEditTime: 2021-09-28 14:11:50
 * @LastEditors: Please set LastEditors
 * @Description: 柱状图初始数据
 * @FilePath: \vue-admin-template-master\src\layout\mixin\commonChartsLine.js
 */
export default {
  data() {
    return {
      options: {
        // echarts4要用timeline就要把通用属性写到baseOption里
        baseOption: {
          textStyle: {
            color: "#698dc3",
          },
          title: {
            top: "4%",
            left: "5%",
            textStyle: {
              color: "#4bb4dd",
            },
          },
          legend: {
            top: "4%",
            right: "5%",
            textStyle: {
              color: "#698dc3",
            },
          },
          tooltip: {
            trigger: "axis",
            axisPointer: {
              type: "shadow",
            },
          },
          grid: {
            left: "5%",
            right: "5%",
            bottom: "5%",
            top: "25%",
            containLabel: true,
          },
          xAxis: {
            type: "category",
            axisTick: {
              show: false,
            },
            axisLine: {
              show: false,
              lineStyle: {
                color: "#698dc3",
              },
            },
            splitLine: {
              lineStyle: {
                type: "dashed",
                color: "#698dc3",
              },
            },
            axisLabel: {
              color: "#698dc3",
            },
          },
          yAxis: {
            type: "value",
            axisLine: {
              show: false,
              lineStyle: {
                color: "#698dc3",
              },
            },
            splitLine: {
              lineStyle: {
                type: "dashed",
                color: "#698dc3",
              },
            },
            axisLabel: {
              color: "#698dc3",
            },
          },
        },
      },
    };
  },
};
