渐变色柱形图y轴更新

qianming 3 years ago
parent 22f31ae9ca
commit 3d7c1067ec

@ -1,6 +1,6 @@
/*
* @Descripttion: 柱状图渐变色 json
* @version:
* @version:
* @Author: qianlishi
* @Date: 2021-08-29 07:23:41
* @LastEditors: qianlishi
@ -298,10 +298,18 @@ export const widgetGradientBarchart = {
placeholder: '',
value: 0
},
{
type: 'el-switch',
label: '缩放',
name: 'scale',
require: false,
placeholder: '',
value: false,
},
{
type: 'el-input-number',
label: '文字间隔',
name: 'ytextInterval',
label: '均分',
name: 'splitNumber',
required: false,
placeholder: '',
value: ''
@ -564,4 +572,4 @@ export const widgetGradientBarchart = {
},
],
}
}
}

@ -241,12 +241,13 @@ export default {
const optionsCollapse = this.optionsSetup;
const yAxis = {
type: "value",
scale : optionsCollapse.scale,
splitNumber: optionsCollapse.splitNumber,//
show: optionsCollapse.isShowY, //
name: optionsCollapse.textNameY, //
inverse: optionsCollapse.reversalY, //
axisLabel: {
show: true,
interval: optionsCollapse.ytextInterval, //
rotate: optionsCollapse.ytextAngle, //
textStyle: {
color: optionsCollapse.colorY, // y

Loading…
Cancel
Save