渐变色柱形图y轴更新

qianming 3 years ago
parent 22f31ae9ca
commit 3d7c1067ec

@ -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: ''

@ -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