forked from github/dataease
Merge pull request #666 from dataease/pr@dev@refactor_chart
refactor: 坐标轴强制显示最大值,scatter横轴优化
This commit is contained in:
commit
b6c03d1ebe
@ -656,7 +656,8 @@ export const BASE_SCATTER = {
|
||||
data: []
|
||||
},
|
||||
xAxis: {
|
||||
data: []
|
||||
data: [],
|
||||
boundaryGap: false
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value'
|
||||
|
@ -58,6 +58,9 @@ export function componentStyle(chart_option, chart) {
|
||||
chart_option.xAxis.axisLabel = customStyle.xAxis.axisLabel
|
||||
chart_option.xAxis.splitLine = customStyle.xAxis.splitLine
|
||||
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
|
||||
@ -66,6 +69,9 @@ export function componentStyle(chart_option, chart) {
|
||||
chart_option.yAxis.axisLabel = customStyle.yAxis.axisLabel
|
||||
chart_option.yAxis.splitLine = customStyle.yAxis.splitLine
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user