| | |
| | | import HdwChart from "@/components/echarts/hdwChart.vue"; |
| | | import getNormalLine from "@/components/echarts/options/normalLine"; |
| | | import {ElMessage} from "element-plus"; |
| | | import getChartLinesMax from "@/util/getChartLinesMax"; |
| | | |
| | | const carName = ref(""); |
| | | const timeRange = ref([]); |
| | |
| | | title4.value = data.y4Name; |
| | | let chart4Data = formatData(data.bmsAlgorithmVoList4); |
| | | chart4Option.xAxis.data = chart4Data.x; |
| | | const chart4MaxInfo = getChartLinesMax(chart4Data.y); |
| | | chart4Option.series = chart4Data.y.map((item, key)=>{ |
| | | return { |
| | | name: '#'+(key+1), |
| | |
| | | sampling: "lttb", |
| | | smooth: false, |
| | | symbolSize: 0, |
| | | markPoint: { |
| | | data: [ |
| | | { |
| | | name: "最大值", |
| | | value: "#"+(chart4MaxInfo.x+1), |
| | | xAxis: chart4Data.x[chart4MaxInfo.x], |
| | | yAxis: chart4MaxInfo.y, |
| | | itemStyle: { |
| | | color: '#ff0000' |
| | | } |
| | | }, |
| | | ] |
| | | }, |
| | | data: item, |
| | | } |
| | | }); |
| | |
| | | left: '1%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | top: "6%", |
| | | containLabel: true |
| | | } |
| | | }); |