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