提交 f0832372 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 db1053f7
......@@ -26,7 +26,7 @@ export default {
barWidth: 10,
barCategoryGap: '0%',
itemStyle: { borderRadius: 100 },
label: { show: true, position: 'right', color: '#E59700' }
label: { show: true, position: 'right', color: '#E59700', formatter: ({ value }) => value / 10000 }
// showBackground: true,
// backgroundStyle: { color: 'transparent', borderWidth: 1, borderColor: '#0A7199', borderRadius: 100 },
}
......
......@@ -101,7 +101,12 @@ export default {
yAxis: {
type: 'value',
splitLine: { show: false },
axisLabel: { color: '#0A7199', formatter: value => value / 10000 }
axisLabel: {
color: '#0A7199',
formatter: value => {
return value > 1 ? value / 10000 : value
}
}
},
xAxis: {
type: 'category',
......
......@@ -107,7 +107,12 @@ export default {
yAxis: {
type: 'value',
splitLine: { show: false },
axisLabel: { color: '#0A7199', formatter: value => value / 10000 }
axisLabel: {
color: '#0A7199',
formatter: value => {
return value > 1 ? value / 10000 : value
}
}
},
xAxis: {
type: 'category',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论