提交 cced14ff 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!71 Optimize the horizontal coordinate precision of the histogram

Merge pull request !71 from 潘慧/master_ph
...@@ -525,7 +525,11 @@ export default { ...@@ -525,7 +525,11 @@ export default {
width: auto; width: auto;
height: auto; height: auto;
padding: 0; padding: 0;
.data-map-container {
width: 100%;
}
#sidebar { #sidebar {
top: 32px;
.node-info-con { .node-info-con {
height: calc(100% - 280px); height: calc(100% - 280px);
} }
......
...@@ -1132,7 +1132,7 @@ export default { ...@@ -1132,7 +1132,7 @@ export default {
const curAxisName = this.curAxisName; const curAxisName = this.curAxisName;
const option = { const option = {
grid: { grid: {
left: 15, left: 24,
top: 60, top: 60,
right: 50, right: 50,
bottom: 60, bottom: 60,
...@@ -1144,7 +1144,11 @@ export default { ...@@ -1144,7 +1144,11 @@ export default {
axisLabel: { axisLabel: {
fontSize: '11', fontSize: '11',
formatter: function(value) { formatter: function(value) {
return Math.round(value * 100) / 100; if (value.toString().length > 6) {
return value.toExponential(3);
} else {
return Math.round(value * 1000) / 1000;
}
}, },
}, },
splitLine: {show: false}, splitLine: {show: false},
......
...@@ -897,7 +897,7 @@ export default { ...@@ -897,7 +897,7 @@ export default {
}); });
const option = { const option = {
grid: { grid: {
left: 15, left: 24,
top: 120, top: 120,
right: 40, right: 40,
bottom: 43, bottom: 43,
...@@ -909,7 +909,11 @@ export default { ...@@ -909,7 +909,11 @@ export default {
axisLabel: { axisLabel: {
fontSize: '11', fontSize: '11',
formatter: function(value) { formatter: function(value) {
return Math.round(value * 100) / 100; if (value.toString().length > 6) {
return value.toExponential(3);
} else {
return Math.round(value * 1000) / 1000;
}
}, },
}, },
splitLine: {show: false}, splitLine: {show: false},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册