渐变色柱形图y轴更新

qianming 4 years ago
parent 22f31ae9ca
commit 3d7c1067ec

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

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

Loading…
Cancel
Save