src/components/Echarts/LineChart2.vue
@@ -1,3 +1,4 @@
<<<<<<< HEAD
<template>
  <div :class="className" :style="{ height: height, width: width }" />
</template>
@@ -90,8 +91,6 @@
      }
      // console.log('组件设置的数据')
      console.log(val, 'eee')
      this.chart.setOption(
        {
          title: {
@@ -104,7 +103,7 @@
            data: val.xAxis,
            boundaryGap: false,
            axisTick: {
              show: false,
              show: true,
            },
            // axisTick: { // 决定是否显示坐标刻度
            //   alignWithLabel: true,
@@ -138,13 +137,13 @@
          tooltip: {
            trigger: 'axis',
            position: function (pt) {
              return [pt[1], '-14%']
              return [pt[1], '-13%']
            },
            textStyle: {
              fontSize: fontSize(0.117), // 字体大小
            },
          },
          yAxis: {
            axisTick: {
              show: false, // 轴线刻度
@@ -176,7 +175,7 @@
            {
              start: 0,
              end: 20,
              bottom: fontSize(3.3),
              top: fontSize(4.8),
              height: fontSize(0.5),
            },
          ],
@@ -189,3 +188,4 @@
  },
}
</script>