Skip to content

Commit

Permalink
adds “none” stroke to legend container rectangles
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Jul 29, 2016
1 parent 6d73a5a commit d5bda90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/viz/helpers/ui/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ module.exports = function(vars) {
.call(position)
.append("rect")
.attr("class","d3plus_color")
.attr("stroke", "none")
.call(style);

keys.order()
Expand Down Expand Up @@ -348,7 +349,7 @@ module.exports = function(vars) {
if (vars.legend.title.value) {
title = fetchValue(vars, d, vars.legend.title.value, colorDepth);
}
else {
else {
title = idIndex >= 0 ? fetchText(vars,d,idIndex)[0] :
vars.format.value(fetchValue(vars,d,vars.color.value,colorKey), {"key": vars.color.value, "vars": vars, "data": d});
}
Expand Down

0 comments on commit d5bda90

Please sign in to comment.