forked from github/dataease
fix(视图): 瀑布图移除轴值数值格式化功能,防止与指标数值格式化冲突
This commit is contained in:
parent
62517b7fdb
commit
73cb6b3f46
@ -430,6 +430,9 @@ export function getYAxis(chart) {
|
||||
fontSize: parseInt(a.axisLabel.fontSize)
|
||||
},
|
||||
formatter: function(value) {
|
||||
if (chart.type === 'waterfall') {
|
||||
return value
|
||||
} else {
|
||||
if (!chart.type.includes('horizontal')) {
|
||||
if (!a.axisLabelFormatter) {
|
||||
return valueFormatter(value, formatterItem)
|
||||
@ -440,6 +443,7 @@ export function getYAxis(chart) {
|
||||
return value
|
||||
}
|
||||
}
|
||||
}
|
||||
} : null
|
||||
|
||||
axis = {
|
||||
|
@ -93,7 +93,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<span v-show="chart.type && !chart.type.includes('horizontal')">
|
||||
<span v-show="chart.type && !chart.type.includes('horizontal') && chart.type !== 'waterfall'">
|
||||
<el-form-item :label="$t('chart.value_formatter_type')" class="form-item">
|
||||
<el-select v-model="axisForm.axisLabelFormatter.type" @change="changeYAxisStyle('axisLabelFormatter')">
|
||||
<el-option v-for="type in typeList" :key="type.value" :label="$t('chart.' + type.name)" :value="type.value" />
|
||||
|
@ -93,7 +93,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<span v-show="chart.type && !chart.type.includes('horizontal')">
|
||||
<span v-show="chart.type && !chart.type.includes('horizontal') && chart.type !== 'waterfall'">
|
||||
<el-form-item :label="$t('chart.value_formatter_type')" class="form-item">
|
||||
<el-select v-model="axisForm.axisLabelFormatter.type" @change="changeYAxisStyle('axisLabelFormatter')">
|
||||
<el-option v-for="type in typeList" :key="type.value" :label="$t('chart.' + type.name)" :value="type.value" />
|
||||
|
Loading…
Reference in New Issue
Block a user