add custom class to rect and circle to animate

This commit is contained in:
Alan Schio 2018-06-16 08:27:01 -04:00 committed by GitHub
parent d338412cdc
commit 4f15fb3b2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1246,11 +1246,11 @@ Licensed under the BSD-2-Clause License.
}; };
Line.prototype.drawLinePath = function(path, lineColor, lineIndex) { Line.prototype.drawLinePath = function(path, lineColor, lineIndex) {
return this.raphael.path(path).attr('stroke', lineColor).attr('stroke-width', this.lineWidthForSeries(lineIndex)); return this.raphael.path(path).attr('stroke', lineColor).attr('stroke-width', this.lineWidthForSeries(lineIndex)).attr('class','morris-line');
}; };
Line.prototype.drawLinePoint = function(xPos, yPos, pointColor, lineIndex) { Line.prototype.drawLinePoint = function(xPos, yPos, pointColor, lineIndex) {
return this.raphael.circle(xPos, yPos, this.pointSizeForSeries(lineIndex)).attr('fill', pointColor).attr('stroke-width', this.pointStrokeWidthForSeries(lineIndex)).attr('stroke', this.pointStrokeColorForSeries(lineIndex)); return this.raphael.circle(xPos, yPos, this.pointSizeForSeries(lineIndex)).attr('fill', pointColor).attr('stroke-width', this.pointStrokeWidthForSeries(lineIndex)).attr('stroke', this.pointStrokeColorForSeries(lineIndex)).attr('class','morris-line-point');
}; };
Line.prototype.pointStrokeWidthForSeries = function(index) { Line.prototype.pointStrokeWidthForSeries = function(index) {