提交 5de3605f 编写于 作者: X xiayifan

优化scalar纵轴精度,优化看板scalar位置

上级 844e7aa8
......@@ -35,7 +35,6 @@ export default new Router({
component: () => import('./views/train-manage/summary-manage.vue'),
},
{
name: 'training-dashboard',
path: '/train-manage/training-dashboard',
component: () => import('./views/train-manage/training-dashboard.vue'),
},
......
......@@ -701,7 +701,7 @@ export default {
formatter(value) {
const symbol = Math.abs(value);
if (symbol.toString().length > 6) {
return value.toExponential(0);
return value.toExponential(4);
} else if (value >= 1000 || value <= -1000) {
return parseFloat((value / 1000).toFixed(2)) + 'k';
} else if (value > 0) {
......@@ -752,8 +752,8 @@ export default {
show: false,
},
grid: {
left: 60,
right: 60,
left: 80,
right: 80,
},
xAxis: [
{
......@@ -953,7 +953,7 @@ export default {
}
const symbol = Math.abs(value);
if (symbol.toString().length > 6) {
return value.toExponential(2);
return value.toExponential(4);
} else if (value > 0) {
return value;
} else {
......
......@@ -764,7 +764,7 @@ export default {
}
const symbol = Math.abs(value);
if (symbol.toString().length > 6) {
return value.toExponential(0);
return value.toExponential(4);
} else if (value >= 1000 || value <= -1000) {
return parseFloat((value / 1000).toFixed(2)) + 'k';
} else if (value > 0) {
......@@ -776,7 +776,8 @@ export default {
},
},
grid: {
left: 60,
left: 80,
right: 10,
},
animation: true,
dataZoom: [
......@@ -910,7 +911,6 @@ export default {
},
toolbox: {
top: 20,
right: '10%',
emphasis: {
iconStyle: {
......@@ -1728,7 +1728,7 @@ export default {
}
const symbol = Math.abs(value);
if (symbol.toString().length > 6) {
return value.toExponential(2);
return value.toExponential(4);
} else if (value > 0) {
return value;
} else {
......@@ -2022,6 +2022,7 @@ export default {
overflow-y: auto;
display: flex;
flex-wrap: wrap;
padding-right: 10px;
.data-content {
display: flex;
......
......@@ -598,13 +598,14 @@ export default {
const tempOption = {
legend: {
data: legendData,
selectedMode: false,
icon: 'circle',
bottom: 0,
},
grid: {
top: 20,
bottom: 50,
left: 60,
left: 66,
right: 60,
},
xAxis: [
......@@ -1448,7 +1449,6 @@ export default {
z-index: 999;
line-height: 22px;
display: flex;
margin-top: 18px;
font-weight: 600;
.tagNameLeft {
text-align: left;
......@@ -1533,7 +1533,7 @@ export default {
// Public Style End
#module-chart {
height: calc(100% - 60px);
height: calc(100% - 22px);
canvas {
cursor: pointer;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册