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

Loading…
Cancel
Save