|
@@ -375,13 +375,13 @@ const setSplineOpt=(data)=>{
|
|
|
y:5,
|
|
|
},
|
|
|
tickWidth: sameSideIndex !== index ? 0 : 1,
|
|
|
- // title: {
|
|
|
- // text: `单位:${item.Unit}`,
|
|
|
- // align: 'high',
|
|
|
- // rotation: 0,
|
|
|
- // y: 0,
|
|
|
- // offset: -60,
|
|
|
- // },
|
|
|
+ title: {
|
|
|
+ text: `单位:${item.Unit}`,
|
|
|
+ align: 'high',
|
|
|
+ rotation: 0,
|
|
|
+ y: 0,
|
|
|
+ offset: -60,
|
|
|
+ },
|
|
|
opposite: item.IsAxis === 0,
|
|
|
reversed: item.IsOrder,
|
|
|
min: item.MinData,
|
|
@@ -554,13 +554,13 @@ const setStackOrCombinChart = data => {
|
|
|
align: 'center',
|
|
|
y:5,
|
|
|
},
|
|
|
- // title: {
|
|
|
- // text: `单位:${item.Unit}`,
|
|
|
- // align: 'high',
|
|
|
- // rotation: 0,
|
|
|
- // y: 0,
|
|
|
- // offset: -60,
|
|
|
- // },
|
|
|
+ title: {
|
|
|
+ text: `单位:${item.Unit}`,
|
|
|
+ align: 'high',
|
|
|
+ rotation: 0,
|
|
|
+ y: 0,
|
|
|
+ offset: -60,
|
|
|
+ },
|
|
|
opposite: item.IsAxis === 0,
|
|
|
reversed: item.IsOrder,
|
|
|
min: item.MinData,
|
|
@@ -698,13 +698,13 @@ const setSeasonOpt=(data)=>{
|
|
|
align: 'center',
|
|
|
y:5
|
|
|
},
|
|
|
- // title: {
|
|
|
- // text: `单位:${data.Unit}`,
|
|
|
- // align: 'high',
|
|
|
- // rotation: 0,
|
|
|
- // y: 5,
|
|
|
- // offset: -60,
|
|
|
- // },
|
|
|
+ title: {
|
|
|
+ text: `单位:${data.Unit}`,
|
|
|
+ align: 'high',
|
|
|
+ rotation: 0,
|
|
|
+ y: 5,
|
|
|
+ offset: -60,
|
|
|
+ },
|
|
|
max: Number(data.MaxData),
|
|
|
min: Number(data.MinData),
|
|
|
lineWidth: 1,
|
|
@@ -761,13 +761,13 @@ const setSeasonOpt=(data)=>{
|
|
|
align: 'center',
|
|
|
y:5
|
|
|
},
|
|
|
- // title: {
|
|
|
- // text: `单位:${data.Unit}`,
|
|
|
- // align: 'high',
|
|
|
- // rotation: 0,
|
|
|
- // y: 5,
|
|
|
- // offset: -60,
|
|
|
- // },
|
|
|
+ title: {
|
|
|
+ text: `单位:${data.Unit}`,
|
|
|
+ align: 'high',
|
|
|
+ rotation: 0,
|
|
|
+ y: 5,
|
|
|
+ offset: -60,
|
|
|
+ },
|
|
|
max: Number(data.MaxData),
|
|
|
min: Number(data.MinData),
|
|
|
lineWidth: 1,
|
|
@@ -920,13 +920,13 @@ const setScatterOptions = (dataList) => {
|
|
|
const { IsOrder,ChartColor } = dataList[0];
|
|
|
//y轴
|
|
|
let yAxis = {
|
|
|
- // title: {
|
|
|
- // text: `单位:${dataList[1].Unit}`,
|
|
|
- // align: 'high',
|
|
|
- // rotation: 0,
|
|
|
- // y: 0,
|
|
|
- // offset: -60,
|
|
|
- // },
|
|
|
+ title: {
|
|
|
+ text: `单位:${dataList[1].Unit}`,
|
|
|
+ align: 'high',
|
|
|
+ rotation: 0,
|
|
|
+ y: 0,
|
|
|
+ offset: -60,
|
|
|
+ },
|
|
|
labels: {
|
|
|
formatter: function (ctx) {
|
|
|
return ctx.value;
|
|
@@ -973,13 +973,13 @@ const setScatterOptions = (dataList) => {
|
|
|
yAxis,
|
|
|
xAxis: {
|
|
|
...scatterXAxis,
|
|
|
- // title: {
|
|
|
- // text: `单位:${dataList[0].Unit}`,
|
|
|
- // align: 'high',
|
|
|
- // rotation: 0,
|
|
|
- // x: 0,
|
|
|
- // offset: 20,
|
|
|
- // },
|
|
|
+ title: {
|
|
|
+ text: `单位:${dataList[0].Unit}`,
|
|
|
+ align: 'high',
|
|
|
+ rotation: 0,
|
|
|
+ x: 0,
|
|
|
+ offset: 20,
|
|
|
+ },
|
|
|
},
|
|
|
tooltip
|
|
|
}
|