|
|
@@ -202,7 +202,9 @@ function barConfig(model) {
|
|
|
textStyle: {
|
|
|
fontSize: getFontSize() * .7
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ max: yconfig.max || null,
|
|
|
+ min: yconfig.min || null
|
|
|
}],
|
|
|
series: getBarSeries(fontSize, layout, series, barconfig)
|
|
|
}
|
|
|
@@ -303,7 +305,9 @@ function lineConfig(model) {
|
|
|
textStyle: {
|
|
|
fontSize: fontSize || getFontSize() * .7
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ max: yconfig.max || null,
|
|
|
+ min: yconfig.min || null
|
|
|
}],
|
|
|
series: getLineSeries(fontSize, series, lineconfig),
|
|
|
dataZoom: series.length > 0 ? [
|
|
|
@@ -847,7 +851,7 @@ function wrapText(text, fontSize, width) {
|
|
|
|
|
|
}
|
|
|
String.prototype.insert = function(str, index){
|
|
|
- let newstr = ""; //初始化一个空字符串
|
|
|
+ let newstr = "";
|
|
|
let tmp = this.substring(0, index);
|
|
|
let estr = this.substring(index, this.length);
|
|
|
newstr += tmp + str + estr;
|