|
|
@ -26,7 +26,7 @@ export default {
|
|
|
|
//边距
|
|
|
|
//边距
|
|
|
|
grid: [
|
|
|
|
grid: [
|
|
|
|
{//左
|
|
|
|
{//左
|
|
|
|
show: false,
|
|
|
|
show: false,//边框线
|
|
|
|
left: '4%',
|
|
|
|
left: '4%',
|
|
|
|
top: 60,
|
|
|
|
top: 60,
|
|
|
|
bottom: 10,
|
|
|
|
bottom: 10,
|
|
|
@ -66,7 +66,7 @@ export default {
|
|
|
|
splitNumber: 2,
|
|
|
|
splitNumber: 2,
|
|
|
|
type: 'value',
|
|
|
|
type: 'value',
|
|
|
|
inverse: true,
|
|
|
|
inverse: true,
|
|
|
|
axisLine: {
|
|
|
|
axisLine: {//底分割线
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
axisTick: {
|
|
|
|
axisTick: {
|
|
|
@ -80,7 +80,7 @@ export default {
|
|
|
|
fontSize: 12
|
|
|
|
fontSize: 12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
splitLine: { // 分割线
|
|
|
|
splitLine: { // 竖分割线
|
|
|
|
show: true,
|
|
|
|
show: true,
|
|
|
|
lineStyle: {
|
|
|
|
lineStyle: {
|
|
|
|
color: '#57617f',
|
|
|
|
color: '#57617f',
|
|
|
@ -275,9 +275,10 @@ export default {
|
|
|
|
// 修改图标options属性
|
|
|
|
// 修改图标options属性
|
|
|
|
editorOptions() {
|
|
|
|
editorOptions() {
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsTitle();
|
|
|
|
|
|
|
|
this.setOptionsXLeft();
|
|
|
|
this.setOptionsTop();
|
|
|
|
this.setOptionsTop();
|
|
|
|
this.setOptionsTooltip();
|
|
|
|
this.setOptionsTooltip();
|
|
|
|
this.setOptionsMargin();
|
|
|
|
this.setOptionsGrid();
|
|
|
|
this.setOptionsLegend();
|
|
|
|
this.setOptionsLegend();
|
|
|
|
this.setOptionsColor();
|
|
|
|
this.setOptionsColor();
|
|
|
|
this.setOptionsData();
|
|
|
|
this.setOptionsData();
|
|
|
@ -296,6 +297,38 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.options.title = title;
|
|
|
|
this.options.title = title;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 左X轴设置
|
|
|
|
|
|
|
|
setOptionsXLeft() {
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
const xAxisLeft = {
|
|
|
|
|
|
|
|
splitNumber: optionsSetup.splitNumberLeft,
|
|
|
|
|
|
|
|
type: 'value',
|
|
|
|
|
|
|
|
inverse: true,
|
|
|
|
|
|
|
|
axisLine: {//X轴线
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
axisTick: {
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
position: 'bottom',
|
|
|
|
|
|
|
|
axisLabel: { // x轴
|
|
|
|
|
|
|
|
show: optionsSetup.hideXLeft,
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
color : optionsSetup.lineColorXLeft,
|
|
|
|
|
|
|
|
fontSize: optionsSetup.fontSizeXLeft
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
splitLine: { // 分割线
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
|
|
color: '#57617f',
|
|
|
|
|
|
|
|
width: 1,
|
|
|
|
|
|
|
|
type: 'solid'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.options.xAxis[0] = xAxisLeft;
|
|
|
|
|
|
|
|
},
|
|
|
|
// 数值设定、柱体设置
|
|
|
|
// 数值设定、柱体设置
|
|
|
|
setOptionsTop() {
|
|
|
|
setOptionsTop() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
@ -351,7 +384,7 @@ export default {
|
|
|
|
this.options.tooltip = tooltip;
|
|
|
|
this.options.tooltip = tooltip;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 边距设置
|
|
|
|
// 边距设置
|
|
|
|
setOptionsMargin() {
|
|
|
|
setOptionsGrid() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const grid = [
|
|
|
|
const grid = [
|
|
|
|
{//左
|
|
|
|
{//左
|
|
|
|