1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <script setup lang="ts">
- import * as echarts from 'echarts'
- const chartRef = ref()
- onMounted(() => {
- echarts.init(chartRef.value).setOption({
- tooltip: {
- trigger: 'axis'
- },
- legend: {
- data: ['自主教学', '结对双师', '名师直播']
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['2022年1月', '2022年3月', '2022年5月','2022年7月', '2022年9月',
- '2022年11月','2023年1月', '2023年3月']
- },
- yAxis: {
- type: 'value'
- },
- series: [
-
- {
- name: '自主教学',
- type: 'line',
- stack: 'Total',
- data: [220, 182, 191, 234, 290, 330, 310, 330,],
- smooth: true
- },
- {
- name: '结对双师',
- type: 'line',
- stack: 'Total',
- data: [150, 232, 201, 154, 190, 330, 410, 330,],
- smooth: true
- },
- {
- name: '名师直播',
- type: 'line',
- stack: 'Total',
- data: [320, 332, 301, 334, 390, 330, 320, 330,],
- smooth: true
- }
- ]
- })
- })
- </script>
- <template>
- <div ref="chartRef" class="w-full h-full " />
- </template>
|