Browse Source

feat: 使用时间对齐作为折线图x轴

main
betaqi 2 days ago
parent
commit
a2c7fca87d
  1. 5
      src/views/stationData/component/newDataChart.vue

5
src/views/stationData/component/newDataChart.vue

@ -141,7 +141,7 @@ const chartOption = computed<EChartsOption>(() => {
}, {} as Record<string, boolean>), }, {} as Record<string, boolean>),
}, },
xAxis: { xAxis: {
type: 'category', type: 'time',
axisLine: { axisLine: {
//y线 //y线
show: true, show: true,
@ -152,8 +152,7 @@ const chartOption = computed<EChartsOption>(() => {
}, },
axisLabel: { axisLabel: {
show: false, show: false,
}, }
data: props.axisData,
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',

Loading…
Cancel
Save