|
|
@ -324,6 +324,7 @@ export default {
|
|
|
|
setOptionsXLeft() {
|
|
|
|
setOptionsXLeft() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const xAxisLeft = {
|
|
|
|
const xAxisLeft = {
|
|
|
|
|
|
|
|
max: optionsSetup.maxXLeft !== "" ? optionsSetup.maxXLeft : null,
|
|
|
|
splitNumber: optionsSetup.splitNumberLeft,
|
|
|
|
splitNumber: optionsSetup.splitNumberLeft,
|
|
|
|
type: "value",
|
|
|
|
type: "value",
|
|
|
|
show: optionsSetup.hideXLeft,
|
|
|
|
show: optionsSetup.hideXLeft,
|
|
|
@ -363,6 +364,7 @@ export default {
|
|
|
|
setOptionsXRight() {
|
|
|
|
setOptionsXRight() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const xAxisRight = {
|
|
|
|
const xAxisRight = {
|
|
|
|
|
|
|
|
max: optionsSetup.maxXRight !== "" ? optionsSetup.maxXRight : null,
|
|
|
|
gridIndex: 2,
|
|
|
|
gridIndex: 2,
|
|
|
|
splitNumber: optionsSetup.splitNumberRight,
|
|
|
|
splitNumber: optionsSetup.splitNumberRight,
|
|
|
|
show: optionsSetup.hideXRight,
|
|
|
|
show: optionsSetup.hideXRight,
|
|
|
@ -426,9 +428,7 @@ export default {
|
|
|
|
setOptionsTop() {
|
|
|
|
setOptionsTop() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const series = this.options.series;
|
|
|
|
const series = this.options.series;
|
|
|
|
for (const key in series) {
|
|
|
|
series[0].label = {
|
|
|
|
if (series[key].type == "bar") {
|
|
|
|
|
|
|
|
(series[0].label = {
|
|
|
|
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
show: optionsSetup.isShow,
|
|
|
|
show: optionsSetup.isShow,
|
|
|
|
position: "insideLeft",
|
|
|
|
position: "insideLeft",
|
|
|
@ -441,8 +441,8 @@ export default {
|
|
|
|
emphasis: {
|
|
|
|
emphasis: {
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
(series[1].label = {
|
|
|
|
series[1].label = {
|
|
|
|
normal: {
|
|
|
|
normal: {
|
|
|
|
show: optionsSetup.isShow,
|
|
|
|
show: optionsSetup.isShow,
|
|
|
|
color: "red",
|
|
|
|
color: "red",
|
|
|
@ -456,9 +456,20 @@ export default {
|
|
|
|
emphasis: {
|
|
|
|
emphasis: {
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
(series[key].barWidth = optionsSetup.maxWidth);
|
|
|
|
for (const key in series) {
|
|
|
|
}
|
|
|
|
series[key].barWidth = optionsSetup.maxWidth;
|
|
|
|
|
|
|
|
//柱体背景属性
|
|
|
|
|
|
|
|
series[key].showBackground = optionsSetup.isShowBackground;
|
|
|
|
|
|
|
|
series[key].backgroundStyle = {
|
|
|
|
|
|
|
|
color: optionsSetup.backgroundStyleColor,
|
|
|
|
|
|
|
|
borderColor: optionsSetup.backgroundStyleBorderColor,
|
|
|
|
|
|
|
|
borderWidth: optionsSetup.backgroundStyleBorderWidth,
|
|
|
|
|
|
|
|
borderType: optionsSetup.backgroundStyleBorderType,
|
|
|
|
|
|
|
|
shadowBlur: optionsSetup.backgroundStyleShadowBlur,
|
|
|
|
|
|
|
|
shadowColor: optionsSetup.backgroundStyleShadowColor,
|
|
|
|
|
|
|
|
opacity: optionsSetup.backgroundStyleOpacity / 100,
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.options.series = series;
|
|
|
|
this.options.series = series;
|
|
|
|
},
|
|
|
|
},
|
|
|
|