Browse Source

Fix tooltip data selection

pull/1/head
Masayuki Tanaka 12 years ago committed by masayuki
parent
commit
5bfc73149a
  1. 3
      c3.js

3
c3.js

@ -648,11 +648,12 @@
for (j = 0; j < selectedData.length; j++) { for (j = 0; j < selectedData.length; j++) {
if (selectedData[j].id === id) { if (selectedData[j].id === id) {
newData.push(selectedData[j]) newData.push(selectedData[j])
selectedData.shift(j)
break break
} }
} }
} }
selectedData = newData selectedData = newData.concat(selectedData) // Add remained
} }
// Expand circles if needed // Expand circles if needed

Loading…
Cancel
Save