Browse Source

Remove legend focus class when reverted

pull/729/head
Masayuki Tanaka 10 years ago
parent
commit
f8e0511625
  1. 1
      c3.js
  2. 2
      c3.min.js
  3. 1
      src/legend.js

1
c3.js

@ -3703,6 +3703,7 @@
c3_chart_internal_fn.revertLegend = function () {
var $$ = this, d3 = $$.d3;
$$.legend.selectAll('.' + CLASS.legendItem)
.classed(CLASS.legendItemFocused, false)
.transition().duration(100)
.style('opacity', function () { return $$.opacityForLegend(d3.select(this)); });
};

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

1
src/legend.js

@ -74,6 +74,7 @@ c3_chart_internal_fn.toggleFocusLegend = function (targetIds, focus) {
c3_chart_internal_fn.revertLegend = function () {
var $$ = this, d3 = $$.d3;
$$.legend.selectAll('.' + CLASS.legendItem)
.classed(CLASS.legendItemFocused, false)
.transition().duration(100)
.style('opacity', function () { return $$.opacityForLegend(d3.select(this)); });
};

Loading…
Cancel
Save