Browse Source

Fix legend when revert called

pull/813/head
Masayuki Tanaka 10 years ago
parent
commit
cd91a12fd7
  1. 2
      c3.js
  2. 4
      c3.min.js
  3. 2
      src/api.focus.js

2
c3.js

@ -5725,7 +5725,7 @@
$$.unexpandArc(targetIds); $$.unexpandArc(targetIds);
} }
if ($$.config.legend_show) { if ($$.config.legend_show) {
$$.showLegend(targetIds); $$.showLegend(targetIds.filter($$.isLegendToShow.bind($$)));
} }
$$.focusedTargetIds = []; $$.focusedTargetIds = [];

4
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/api.focus.js

@ -48,7 +48,7 @@ c3_chart_fn.revert = function (targetIds) {
$$.unexpandArc(targetIds); $$.unexpandArc(targetIds);
} }
if ($$.config.legend_show) { if ($$.config.legend_show) {
$$.showLegend(targetIds); $$.showLegend(targetIds.filter($$.isLegendToShow.bind($$)));
} }
$$.focusedTargetIds = []; $$.focusedTargetIds = [];

Loading…
Cancel
Save