From 15c808e3f3528d42735ed205d985bad5344adefe Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Fri, 17 May 2013 00:37:45 +0900 Subject: [PATCH] Fix tooltip data --- c3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c3.js b/c3.js index 79fc1db..15f9831 100644 --- a/c3.js +++ b/c3.js @@ -786,7 +786,7 @@ .on('mouseover', function(d,i) { if (dragging) return // do nothing if dragging - var selectedData = targets.map(function(d){ return d.values[i] }); + var selectedData = c3.data.targets.map(function(d){ return d.values[i] }); var j, newData // Add id,name to selectedData