Skip to content
Permalink
Browse files

fix legend color bug introduced in 0.6.4; see #34 (comment)

  • Loading branch information
timelyportfolio committed Apr 13, 2017
1 parent bec1bd3 commit 635ec7cd755d8d3ae417a402be65833725551cdf
Showing with 3 additions and 1 deletion.
  1. +3 −1 inst/htmlwidgets/sunburst.js
@@ -472,7 +472,9 @@ HTMLWidgets.widget({
var g = legend.selectAll("g")
.data( function(){
if(x.options.legendOrder !== null){
return x.options.legendOrder;
return x.options.legendOrder.map(function(d) {
return labels.filter(function(dd) {return dd.name === d })[0];
});
} else {
// get sorted by top level
return labels;

0 comments on commit 635ec7c

Please sign in to comment.
You can’t perform that action at this time.