This commit is contained in:
lai
2024-01-26 14:44:17 +08:00
parent 62bf6be2f1
commit aac48c83cc

View File

@@ -76,14 +76,12 @@ function fnDesign(container: HTMLElement | undefined, option: EChartsOption) {
upfFlowChart.value.resize();
};
option && upfFlowChart.value.setOption(option);
}
//渲染速率图
function initPicture() {
let queryArr: any = [];
const initTime: Date = new Date();
console.log(initTime)
const startTime: Date = new Date(initTime);
startTime.setHours(0, 0, 0, 0); // 设置为今天的0点
const endTime: Date = new Date(initTime);
@@ -165,7 +163,6 @@ function initPicture() {
trigger: 'axis',
//formatter:'{a0}:{c0}<br>{a1}:{c1}'
formatter: function (param: any) {
console.log(param);
var tip = '';
if (param !== null && param.length > 0) {
tip += param[0].name + '<br />';
@@ -187,8 +184,9 @@ function initPicture() {
fontSize: 12,
color: 'rgb(0,253,255,0.6)',
},
right: '35%',
},
left: 'center',
}, // 设置图例居中
grid: {
top: '14%',
left: '4%',