提交 2e10491c authored 作者: junjie's avatar junjie

refactor: 坐标轴强制显示最小值

上级 bc2b22a3
...@@ -60,6 +60,7 @@ export function componentStyle(chart_option, chart) { ...@@ -60,6 +60,7 @@ export function componentStyle(chart_option, chart) {
chart_option.xAxis.nameTextStyle = customStyle.xAxis.nameTextStyle chart_option.xAxis.nameTextStyle = customStyle.xAxis.nameTextStyle
chart_option.xAxis.axisLabel.showMaxLabel = true chart_option.xAxis.axisLabel.showMaxLabel = true
chart_option.xAxis.axisLabel.showMinLabel = true
} }
if (customStyle.yAxis && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('scatter'))) { if (customStyle.yAxis && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('scatter'))) {
chart_option.yAxis.show = customStyle.yAxis.show chart_option.yAxis.show = customStyle.yAxis.show
...@@ -70,6 +71,7 @@ export function componentStyle(chart_option, chart) { ...@@ -70,6 +71,7 @@ export function componentStyle(chart_option, chart) {
chart_option.yAxis.nameTextStyle = customStyle.yAxis.nameTextStyle chart_option.yAxis.nameTextStyle = customStyle.yAxis.nameTextStyle
chart_option.xAxis.axisLabel.showMaxLabel = true chart_option.xAxis.axisLabel.showMaxLabel = true
chart_option.xAxis.axisLabel.showMinLabel = true
} }
if (customStyle.split && chart.type.includes('radar')) { if (customStyle.split && chart.type.includes('radar')) {
chart_option.radar.name = customStyle.split.name chart_option.radar.name = customStyle.split.name
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论