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