mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
removing for unused
This commit is contained in:
parent
4f15fb3b2c
commit
7353918e7b
10
morris.js
10
morris.js
@ -236,16 +236,7 @@ Licensed under the BSD-2-Clause License.
|
||||
ret.label = new Date(ret.label).toString();
|
||||
}
|
||||
} else {
|
||||
if(this.options.valueFormatter) {
|
||||
ret.src.formated = []
|
||||
for(var ykey in this.options.ykeys) {
|
||||
var value = ret.src[this.options.ykeys[ykey]];
|
||||
ret.src.formated[this.options.ykeys[ykey]] = this.options.valueFormatter(value);
|
||||
}
|
||||
}
|
||||
ret.x = index;
|
||||
|
||||
|
||||
if (this.options.xLabelFormat) {
|
||||
ret.label = this.options.xLabelFormat(ret);
|
||||
}
|
||||
@ -1840,6 +1831,7 @@ Licensed under the BSD-2-Clause License.
|
||||
maxRadius = Math.max.apply(Math, radiusArray);
|
||||
if (maxRadius === 0 || maxRadius > height) {
|
||||
path = this.raphael.rect(xPos, yPos, width, height);
|
||||
|
||||
} else {
|
||||
path = this.raphael.path(this.roundedRect(xPos, yPos, width, height, radiusArray));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user