Skip to content

Commit

Permalink
Merge pull request #40 from SRITANU/feature/Fix-for-Line-Charts-does-…
Browse files Browse the repository at this point in the history
…not-render-in-Chrome-when-stroke-dash-length-is-zero

Fix for Line Charts does not render in Chrome when stroke dash length is zero
  • Loading branch information
rohitkr committed Aug 10, 2015
2 parents a971ba5 + c25a874 commit d9e70b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/raphael.svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ window.Raphael && window.Raphael.svg && function(R) {
calculatedValues = [];
while (i--) {
calculatedValues[i] = (value[i] * widthFactor + ((i % 2) ? 1 : -1) * butt) || value[i];
calculatedValues[i] < 0 && (calculatedValues[i] = 0);
calculatedValues[i] < 0 && (calculatedValues[i] = abs(calculatedValues[i]));
}

if (R.is(value, 'array')) {
Expand Down

0 comments on commit d9e70b8

Please sign in to comment.