交易所前端蓝色ui, 4.5 jiem
jhzh
2024-04-08 67357c691325dc3cf743267f1ef0e1f5c93d7528
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<template>
  <div id="myChart" class="kline-BoxMain">
 
  </div>
</template>
 
<script>
import echarts from "echarts";
 
export default {
  name: "deepChart",
  data() {
    return {
    };
  },
  mounted() {
    this.drawLine()
  },
  props: {
 
  },
  computed: {},
  watch: {
 
  },
  methods: {
 
 
 
    drawLine() {
      // 基于准备好的dom,初始化echarts实例
      let myChart = echarts.init(document.getElementById("myChart"));
      // 绘制图表
      myChart.setOption({
        xAxis: {
          type: 'category',
          data: ['17:30', '17:31', '19:30', '21:30','17:30', '17:31', '19:30', '21:30','17:30', '17:31', '19:30', '21:30'],
          axisLabel: {
            show: true,
            color: '#ffffff',
            fontSize: 12
          },
          splitLine:{show: false}
        },
        yAxis: {
          position: "right",
          axisLabel: {
            show: true,
            color: '#ffffff',
            fontSize: 12
          },
          splitLine:{show: false}
        },
        series: [
          {
            data: [150, 230, 224, 210,150, 230, 224, 210,150, 230, 224, 210],
            type: 'line',
            itemStyle: {
                            color: '#505261',
                        },
            showSymbol: false
          }
        ]
      });
    },
  },
};
</script>
<style scoped>
.kline-BoxMain {
  width: 100%;
  height: 600px;
}
</style>