Commit cd91a12f authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix legend when revert called

parent 951696ee
...@@ -5725,7 +5725,7 @@ ...@@ -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 = [];
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -48,7 +48,7 @@ c3_chart_fn.revert = function (targetIds) { ...@@ -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 = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment