|
|
@ -141,7 +141,6 @@ export default {
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsX();
|
|
|
|
this.setOptionsX();
|
|
|
|
this.setOptionsY();
|
|
|
|
this.setOptionsY();
|
|
|
|
//this.setOptionsLine();
|
|
|
|
|
|
|
|
this.setOptionsBar();
|
|
|
|
this.setOptionsBar();
|
|
|
|
this.setOptionsTooltip();
|
|
|
|
this.setOptionsTooltip();
|
|
|
|
this.setOptionsData();
|
|
|
|
this.setOptionsData();
|
|
|
@ -306,41 +305,6 @@ export default {
|
|
|
|
];
|
|
|
|
];
|
|
|
|
this.options.yAxis = yAxis;
|
|
|
|
this.options.yAxis = yAxis;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 折线设置 数值设置
|
|
|
|
|
|
|
|
setOptionsLine() {
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
const series = this.options.series;
|
|
|
|
|
|
|
|
for (const key in series) {
|
|
|
|
|
|
|
|
if (series[key].type == "line") {
|
|
|
|
|
|
|
|
series[key].symbol = optionsSetup.symbol;
|
|
|
|
|
|
|
|
series[key].showSymbol = optionsSetup.markPoint;
|
|
|
|
|
|
|
|
series[key].symbolSize = optionsSetup.pointSize;
|
|
|
|
|
|
|
|
series[key].smooth = optionsSetup.smoothCurve;
|
|
|
|
|
|
|
|
if (optionsSetup.area) {
|
|
|
|
|
|
|
|
series[key].areaStyle = {
|
|
|
|
|
|
|
|
opacity: optionsSetup.areaThickness / 100,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
series[key].areaStyle = {
|
|
|
|
|
|
|
|
opacity: 0,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
series[key].lineStyle = {
|
|
|
|
|
|
|
|
width: optionsSetup.lineWidth,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
series[key].itemStyle.borderRadius = optionsSetup.radius;
|
|
|
|
|
|
|
|
series[key].label = {
|
|
|
|
|
|
|
|
show: optionsSetup.isShowLine,
|
|
|
|
|
|
|
|
position: "top",
|
|
|
|
|
|
|
|
distance: optionsSetup.distanceLine,
|
|
|
|
|
|
|
|
fontSize: optionsSetup.fontSizeLine,
|
|
|
|
|
|
|
|
color: optionsSetup.subTextColorLine,
|
|
|
|
|
|
|
|
fontWeight: optionsSetup.fontWeightLine,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.options.series = series;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 柱体设置 数值设置
|
|
|
|
// 柱体设置 数值设置
|
|
|
|
setOptionsBar() {
|
|
|
|
setOptionsBar() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
@ -348,12 +312,12 @@ export default {
|
|
|
|
for (const key in series) {
|
|
|
|
for (const key in series) {
|
|
|
|
if (series[key].type == "bar") {
|
|
|
|
if (series[key].type == "bar") {
|
|
|
|
series[key].label = {
|
|
|
|
series[key].label = {
|
|
|
|
show: optionsSetup.isShowBar,
|
|
|
|
show: optionsSetup.isShow,
|
|
|
|
position: "top",
|
|
|
|
position: "top",
|
|
|
|
distance: optionsSetup.distanceBar,
|
|
|
|
distance: optionsSetup.distance,
|
|
|
|
fontSize: optionsSetup.fontSizeBar,
|
|
|
|
fontSize: optionsSetup.fontSize,
|
|
|
|
color: optionsSetup.subTextColorBar,
|
|
|
|
color: optionsSetup.dataColor,
|
|
|
|
fontWeight: optionsSetup.fontWeightBar,
|
|
|
|
fontWeight: optionsSetup.fontWeight,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
series[key].barWidth = optionsSetup.maxWidth;
|
|
|
|
series[key].barWidth = optionsSetup.maxWidth;
|
|
|
|
series[key].barMinHeight = optionsSetup.minHeight;
|
|
|
|
series[key].barMinHeight = optionsSetup.minHeight;
|
|
|
|