Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove stroke from pie chart

  • Loading branch information...
commit 078d19a4d5ddbb65dd36b01ee06d29d1b06c91ab 1 parent cdb0e83
@joeferner joeferner authored
Showing with 5 additions and 14 deletions.
  1. +5 −14 lib/format/html/index.js
View
19 lib/format/html/index.js
@@ -142,28 +142,19 @@ function renderPieChart(percent) {
if (percent > 0.9999) {
html += ' <circle cx="' + center + '" cy="' + center + '" r="' + quadrantSize + '"';
html += ' style="fill:#00ff00;';
- html += ' fill-opacity: 1;';
- html += ' stroke:black;';
- html += ' stroke-width: 1;"/>';
+ html += ' fill-opacity: 1;"/>';
} else if (percent < 0.0001) {
html += ' <circle cx="' + center + '" cy="' + center + '" r="' + quadrantSize + '"';
html += ' style="fill:#ff0000;';
- html += ' fill-opacity: 1;';
- html += ' stroke:black;';
- html += ' stroke-width: 1;"/>';
+ html += ' fill-opacity: 1;"/>';
} else {
html += ' <path d="M' + center + ',' + center + ' L' + center + ',' + margin + ' A' + (center - margin) + ',' + (center - margin) + ' 0 ' + greenDirection + ',1 ' + x + ',' + y + ' z"';
html += ' style="fill:#00ff00;';
- html += ' fill-opacity: 1;';
- html += ' stroke:black;';
- html += ' stroke-width: 1"/>';
+ html += ' fill-opacity: 1;"/>';
html += ' <path d="M' + center + ',' + center + ' L' + x + ',' + y + ' A' + (center - margin) + ',' + (center - margin) + ' 0 ' + redDirection + ',1 ' + center + ',' + margin + ' z"';
html += ' style="fill:#ff0000;';
- html += ' fill-opacity: 1;';
- html += ' stroke:black;';
- html += ' stroke-width: 1"/>';
+ html += ' fill-opacity: 1;"/>';
}
html += '</svg>';
return html;
-}
-;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.