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

This commit is contained in:
junjie 2021-08-19 10:46:03 +08:00
parent bc2b22a327
commit 2e10491c5d

View File

@ -60,6 +60,7 @@ export function componentStyle(chart_option, chart) {
chart_option.xAxis.nameTextStyle = customStyle.xAxis.nameTextStyle
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'))) {
chart_option.yAxis.show = customStyle.yAxis.show
@ -70,6 +71,7 @@ export function componentStyle(chart_option, chart) {
chart_option.yAxis.nameTextStyle = customStyle.yAxis.nameTextStyle
chart_option.xAxis.axisLabel.showMaxLabel = true
chart_option.xAxis.axisLabel.showMinLabel = true
}
if (customStyle.split && chart.type.includes('radar')) {
chart_option.radar.name = customStyle.split.name