From aecf299956408ac59b4a754fb2007d173fa0a784 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Mon, 8 Jan 2018 13:24:04 +0900 Subject: [PATCH] Fix expand circle --- src/interaction.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/interaction.js b/src/interaction.js index a325ced..d0a875f 100644 --- a/src/interaction.js +++ b/src/interaction.js @@ -87,7 +87,10 @@ c3_chart_internal_fn.redrawEventRect = function () { // expand points if (config.point_focus_expand_enabled) { - $$.expandCircles(closest.index, closest.id, true); + $$.unexpandCircles(); + selectedData.forEach(function (d) { + $$.expandCircles(d.index, d.id, false); + }); } $$.expandBars(closest.index, closest.id, true);