fix:修复预览后分组柱状图数据标签不显示

main
zhu.yawen 1 year ago
parent b87a142074
commit a469a6a2c3

@ -218,7 +218,7 @@ const setting = [
groupName: 'xAxis'
},
{
label: '名称',
label: '标题',
type: 'input',
field: 'xAxis_name',
optionField: 'xAxis.name',
@ -227,7 +227,7 @@ const setting = [
groupName: 'xAxis'
},
{
label: '名称位置',
label: '标题位置',
type: 'select',
field: 'xAxis_nameLocation',
optionField: 'xAxis.nameLocation',
@ -249,7 +249,7 @@ const setting = [
groupName: 'xAxis'
},
{
label: '名称到轴线距离',
label: '标题到轴线距离',
type: 'inputNumber',
field: 'xAxis_nameGap',
optionField: 'xAxis.nameGap',
@ -258,7 +258,7 @@ const setting = [
groupName: 'xAxis'
},
{
label: '名称字体大小',
label: '标题字体大小',
type: 'inputNumber',
field: 'xAxis_nameTextStyle_fontSize',
optionField: 'xAxis.nameTextStyle.fontSize',
@ -267,7 +267,7 @@ const setting = [
groupName: 'xAxis'
},
{
label: '名称颜色',
label: '标题颜色',
type: 'colorPicker',
field: 'xAxis_nameTextStyle_color',
optionField: 'xAxis.nameTextStyle.color',
@ -361,7 +361,7 @@ const setting = [
groupName: 'yAxis'
},
{
label: '名称',
label: '标题',
type: 'input',
field: 'yAxis_name',
optionField: 'yAxis.name',
@ -370,7 +370,7 @@ const setting = [
groupName: 'yAxis'
},
{
label: '名称位置',
label: '标题位置',
type: 'select',
field: 'yAxis_nameLocation',
optionField: 'yAxis.nameLocation',
@ -392,7 +392,7 @@ const setting = [
groupName: 'yAxis'
},
{
label: '名称到轴线距离',
label: '标题到轴线距离',
type: 'inputNumber',
field: 'yAxis_nameGap',
optionField: 'yAxis.nameGap',
@ -401,7 +401,7 @@ const setting = [
groupName: 'yAxis'
},
{
label: '名称字体大小',
label: '标题字体大小',
type: 'inputNumber',
field: 'yAxis_nameTextStyle_fontSize',
optionField: 'yAxis.nameTextStyle.fontSize',
@ -410,7 +410,7 @@ const setting = [
groupName: 'yAxis'
},
{
label: '名称颜色',
label: '标题颜色',
type: 'colorPicker',
field: 'yAxis_nameTextStyle_color',
optionField: 'yAxis.nameTextStyle.color',

@ -489,7 +489,7 @@ const setting = [
groupName: 'yAxis'
},
{
label: '刻度度',
label: '刻度度',
type: 'inputNumber',
field: 'yAxis_axisTick_length',
optionField: 'yAxis.axisTick.length',

@ -302,6 +302,13 @@ export default {
const seriesFieldList = [...new Set(data.map(item => item[seriesField]))]
option.series = []
const barWidth = option.seriesCustom.barWidth
//
let labelShow = 0
config.setting.forEach(set => {
if (set.field === 'series_barColor_label_show') {
labelShow = set.value
}
})
//
const offsetArr = []
let index = 0
@ -347,8 +354,7 @@ export default {
barWidth: barWidth,
color: '#115ba6',
label: {
show: false
show: labelShow
},
zlevel: 2,
z: 12,

Loading…
Cancel
Save