|
@@ -167,7 +167,8 @@ export default {
|
|
return val;
|
|
return val;
|
|
},
|
|
},
|
|
align: 'center',
|
|
align: 'center',
|
|
- x: [0,2].includes(item.IsAxis) ? 5 : -5,
|
|
|
|
|
|
+ x: [0,2].includes(item.IsAxis) ? 2 : -2,
|
|
|
|
+ y: 3,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.yAxisOptions.style,
|
|
...chartTheme&&chartTheme.yAxisOptions.style,
|
|
}
|
|
}
|
|
@@ -232,6 +233,7 @@ export default {
|
|
? Highcharts.dateFormat('%m/%d', ctx.value)
|
|
? Highcharts.dateFormat('%m/%d', ctx.value)
|
|
: Highcharts.dateFormat('%y/%m', ctx.value);
|
|
: Highcharts.dateFormat('%y/%m', ctx.value);
|
|
},
|
|
},
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -341,7 +343,8 @@ export default {
|
|
return sameSideIndex !== index ? '' : val;
|
|
return sameSideIndex !== index ? '' : val;
|
|
},
|
|
},
|
|
align: 'center',
|
|
align: 'center',
|
|
- x: [0,2].includes(item.IsAxis) ? 5 : -5,
|
|
|
|
|
|
+ x: [0,2].includes(item.IsAxis) ? 2 : -2,
|
|
|
|
+ y: 3,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
}
|
|
}
|
|
@@ -410,6 +413,7 @@ export default {
|
|
? Highcharts.dateFormat('%m/%d', ctx.value)
|
|
? Highcharts.dateFormat('%m/%d', ctx.value)
|
|
: Highcharts.dateFormat('%y/%m', ctx.value);
|
|
: Highcharts.dateFormat('%y/%m', ctx.value);
|
|
},
|
|
},
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -479,6 +483,8 @@ export default {
|
|
return val;
|
|
return val;
|
|
},
|
|
},
|
|
align: 'center',
|
|
align: 'center',
|
|
|
|
+ x: -2,
|
|
|
|
+ y: 3,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
}
|
|
}
|
|
@@ -512,6 +518,7 @@ export default {
|
|
formatter: function (ctx) {
|
|
formatter: function (ctx) {
|
|
return Highcharts.dateFormat('%m/%d', ctx.value);
|
|
return Highcharts.dateFormat('%m/%d', ctx.value);
|
|
},
|
|
},
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -611,7 +618,7 @@ export default {
|
|
//y轴
|
|
//y轴
|
|
const textYZh = chartData[1].ConvertUnit||chartData[1].Unit
|
|
const textYZh = chartData[1].ConvertUnit||chartData[1].Unit
|
|
const textYEn = chartData[1].ConvertEnUnit||chartData[1].UnitEn||chartData[1].ConvertUnit||chartData[1].Unit
|
|
const textYEn = chartData[1].ConvertEnUnit||chartData[1].UnitEn||chartData[1].ConvertUnit||chartData[1].Unit
|
|
- let yAxis = {
|
|
|
|
|
|
+ let yAxis = [{
|
|
title: {
|
|
title: {
|
|
text: `${textYZh}`,
|
|
text: `${textYZh}`,
|
|
textCh:textYZh,
|
|
textCh:textYZh,
|
|
@@ -628,6 +635,8 @@ export default {
|
|
formatter: function (ctx) {
|
|
formatter: function (ctx) {
|
|
return ctx.value;
|
|
return ctx.value;
|
|
},
|
|
},
|
|
|
|
+ x: -2,
|
|
|
|
+ y: 3,
|
|
align: 'center',
|
|
align: 'center',
|
|
style:{
|
|
style:{
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
@@ -652,7 +661,7 @@ export default {
|
|
tickPixelInterval: 50,
|
|
tickPixelInterval: 50,
|
|
plotBands: this.setAxisPlotAreas(1),
|
|
plotBands: this.setAxisPlotAreas(1),
|
|
plotLines: this.setAxisPlotLines(1)
|
|
plotLines: this.setAxisPlotLines(1)
|
|
- }
|
|
|
|
|
|
+ }]
|
|
|
|
|
|
//数据列
|
|
//数据列
|
|
let series = {
|
|
let series = {
|
|
@@ -694,6 +703,7 @@ export default {
|
|
offset: 15,
|
|
offset: 15,
|
|
},
|
|
},
|
|
labels: {
|
|
labels: {
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -722,6 +732,7 @@ export default {
|
|
categories: this.barXIdData.map(_ => this.barEdbData.find(edb => edb.EdbInfoId===_).EdbAliasName),
|
|
categories: this.barXIdData.map(_ => this.barEdbData.find(edb => edb.EdbInfoId===_).EdbAliasName),
|
|
tickWidth: 1,
|
|
tickWidth: 1,
|
|
labels: {
|
|
labels: {
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -751,6 +762,8 @@ export default {
|
|
let val = ctx.value;
|
|
let val = ctx.value;
|
|
return val;
|
|
return val;
|
|
},
|
|
},
|
|
|
|
+ x: -2,
|
|
|
|
+ y: 3,
|
|
align: 'center',
|
|
align: 'center',
|
|
style:{
|
|
style:{
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
@@ -826,6 +839,7 @@ export default {
|
|
categories: this.commodityXData.map(_ =>_.Name),
|
|
categories: this.commodityXData.map(_ =>_.Name),
|
|
tickWidth: 1,
|
|
tickWidth: 1,
|
|
labels: {
|
|
labels: {
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -854,6 +868,8 @@ export default {
|
|
let val = ctx.value;
|
|
let val = ctx.value;
|
|
return val;
|
|
return val;
|
|
},
|
|
},
|
|
|
|
+ x: -2,
|
|
|
|
+ y: 3,
|
|
align: 'center',
|
|
align: 'center',
|
|
style:{
|
|
style:{
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
@@ -1040,6 +1056,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
labels: {
|
|
labels: {
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -1070,6 +1087,8 @@ export default {
|
|
let val = ctx.value;
|
|
let val = ctx.value;
|
|
return val;
|
|
return val;
|
|
},
|
|
},
|
|
|
|
+ x: -2,
|
|
|
|
+ y: 3,
|
|
align: 'center',
|
|
align: 'center',
|
|
style:{
|
|
style:{
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
@@ -1164,6 +1183,8 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
labels: {
|
|
labels: {
|
|
|
|
+ x: -2,
|
|
|
|
+ y: 3,
|
|
style:{
|
|
style:{
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
},
|
|
},
|
|
@@ -1190,6 +1211,7 @@ export default {
|
|
align: 'middle',
|
|
align: 'middle',
|
|
},
|
|
},
|
|
labels: {
|
|
labels: {
|
|
|
|
+ y: 14,
|
|
style:{
|
|
style:{
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
},
|
|
},
|
|
@@ -1342,6 +1364,7 @@ export default {
|
|
...scatterXAxis,
|
|
...scatterXAxis,
|
|
tickWidth: 1,
|
|
tickWidth: 1,
|
|
labels: {
|
|
labels: {
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -1366,6 +1389,8 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
labels: {
|
|
labels: {
|
|
|
|
+ x: 0,
|
|
|
|
+ y: 3,
|
|
style:{
|
|
style:{
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
},
|
|
},
|
|
@@ -1443,6 +1468,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
labels: {
|
|
labels: {
|
|
|
|
+ x: -2,
|
|
|
|
+ y: 3,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|
|
@@ -1467,6 +1494,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
labels: {
|
|
labels: {
|
|
|
|
+ y: 14,
|
|
style: {
|
|
style: {
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
...chartTheme&&chartTheme.xAxisOptions.style
|
|
}
|
|
}
|