From 4f15fb3b2cce2add6ba1f0c5b58a54d723f32b0e Mon Sep 17 00:00:00 2001 From: Alan Schio Date: Sat, 16 Jun 2018 08:27:01 -0400 Subject: [PATCH] add custom class to rect and circle to animate --- morris.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morris.js b/morris.js index f97bfa9..c4aa147 100644 --- a/morris.js +++ b/morris.js @@ -1246,11 +1246,11 @@ Licensed under the BSD-2-Clause License. }; 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) { - 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) {