|
|
@ -276,6 +276,7 @@ export default {
|
|
|
|
editorOptions() {
|
|
|
|
editorOptions() {
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsXLeft();
|
|
|
|
this.setOptionsXLeft();
|
|
|
|
|
|
|
|
this.setOptionsXRight();
|
|
|
|
this.setOptionsTop();
|
|
|
|
this.setOptionsTop();
|
|
|
|
this.setOptionsTooltip();
|
|
|
|
this.setOptionsTooltip();
|
|
|
|
this.setOptionsGrid();
|
|
|
|
this.setOptionsGrid();
|
|
|
@ -305,7 +306,10 @@ export default {
|
|
|
|
type: 'value',
|
|
|
|
type: 'value',
|
|
|
|
inverse: true,
|
|
|
|
inverse: true,
|
|
|
|
axisLine: {//X轴线
|
|
|
|
axisLine: {//X轴线
|
|
|
|
show: false,
|
|
|
|
show: optionsSetup.xLineLeft,
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: optionsSetup.lineColorXLeft,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
axisTick: {
|
|
|
|
axisTick: {
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
@ -314,21 +318,56 @@ export default {
|
|
|
|
axisLabel: { // x轴
|
|
|
|
axisLabel: { // x轴
|
|
|
|
show: optionsSetup.hideXLeft,
|
|
|
|
show: optionsSetup.hideXLeft,
|
|
|
|
textStyle: {
|
|
|
|
textStyle: {
|
|
|
|
color : optionsSetup.lineColorXLeft,
|
|
|
|
color : optionsSetup.XcolorLeft,
|
|
|
|
fontSize: optionsSetup.fontSizeXLeft
|
|
|
|
fontSize: optionsSetup.fontSizeXLeft
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
splitLine: { // 分割线
|
|
|
|
splitLine: { // 分割线
|
|
|
|
show: false,
|
|
|
|
show: optionsSetup.SplitLineLeft,
|
|
|
|
lineStyle: {
|
|
|
|
lineStyle: {
|
|
|
|
color: '#57617f',
|
|
|
|
color: optionsSetup.SplitLineColorLeft,
|
|
|
|
width: 1,
|
|
|
|
width: optionsSetup.SplitLinefontSizeLeft,
|
|
|
|
type: 'solid'
|
|
|
|
type: 'solid'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.options.xAxis[0] = xAxisLeft;
|
|
|
|
this.options.xAxis[0] = xAxisLeft;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 右X轴设置
|
|
|
|
|
|
|
|
setOptionsXRight() {
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
const xAxisRight = {
|
|
|
|
|
|
|
|
gridIndex: 2,
|
|
|
|
|
|
|
|
splitNumber: optionsSetup.splitNumberRight,
|
|
|
|
|
|
|
|
type: 'value',
|
|
|
|
|
|
|
|
axisLine: {//X轴线
|
|
|
|
|
|
|
|
show: optionsSetup.xLineRight,
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: optionsSetup.lineColorXRight,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisTick: {
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
position: 'bottom',
|
|
|
|
|
|
|
|
axisLabel: { // x轴
|
|
|
|
|
|
|
|
show: optionsSetup.hideXRight,
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
color : optionsSetup.XcolorRight,
|
|
|
|
|
|
|
|
fontSize: optionsSetup.fontSizeXRight
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
splitLine: { // 分割线
|
|
|
|
|
|
|
|
show: optionsSetup.SplitLineRight,
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: optionsSetup.SplitLineColorRight,
|
|
|
|
|
|
|
|
width: optionsSetup.SplitLinefontSizeRight,
|
|
|
|
|
|
|
|
type: 'solid'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.options.xAxis[2] = xAxisRight;
|
|
|
|
|
|
|
|
},
|
|
|
|
// 数值设定、柱体设置
|
|
|
|
// 数值设定、柱体设置
|
|
|
|
setOptionsTop() {
|
|
|
|
setOptionsTop() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
@ -388,7 +427,7 @@ export default {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const grid = [
|
|
|
|
const grid = [
|
|
|
|
{//左
|
|
|
|
{//左
|
|
|
|
show: false,
|
|
|
|
show: optionsSetup.frameLineLeft,
|
|
|
|
left: optionsSetup.marginLeftRight,
|
|
|
|
left: optionsSetup.marginLeftRight,
|
|
|
|
top: optionsSetup.marginTop,
|
|
|
|
top: optionsSetup.marginTop,
|
|
|
|
bottom: optionsSetup.marginBottom,
|
|
|
|
bottom: optionsSetup.marginBottom,
|
|
|
@ -403,7 +442,7 @@ export default {
|
|
|
|
width: '0%'
|
|
|
|
width: '0%'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{//右
|
|
|
|
{//右
|
|
|
|
show: false,
|
|
|
|
show: optionsSetup.frameLineRight,
|
|
|
|
right: optionsSetup.marginLeftRight,
|
|
|
|
right: optionsSetup.marginLeftRight,
|
|
|
|
top: optionsSetup.marginTop,
|
|
|
|
top: optionsSetup.marginTop,
|
|
|
|
bottom: optionsSetup.marginBottom,
|
|
|
|
bottom: optionsSetup.marginBottom,
|
|
|
|