居中
This commit is contained in:
@@ -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%',
|
||||
|
||||
Reference in New Issue
Block a user