From 5bfc73149a5a8130bf19406855cba7cb923cf939 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Thu, 9 May 2013 19:35:28 +0900 Subject: [PATCH] Fix tooltip data selection --- c3.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c3.js b/c3.js index 4ee9239..eba38af 100644 --- a/c3.js +++ b/c3.js @@ -648,11 +648,12 @@ for (j = 0; j < selectedData.length; j++) { if (selectedData[j].id === id) { newData.push(selectedData[j]) + selectedData.shift(j) break } } } - selectedData = newData + selectedData = newData.concat(selectedData) // Add remained } // Expand circles if needed