Skip to content

Commit

Permalink
Merge pull request #8 from tianon/patch-4
Browse files Browse the repository at this point in the history
localize the tooltip variable to keep the tooltips localized to the proper RadarChart when multiple are on the page
  • Loading branch information
alangrafu committed Jul 8, 2013
2 parents 50d9934 + 4e68775 commit ac5904e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/radar-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var RadarChart = {
d3.select(id).select("svg").remove();
var g = d3.select(id).append("svg").attr("width", cfg.w).attr("height", cfg.h).append("g");

var tooltip;

for(var j=0; j<cfg.levels; j++){
var levelFactor = cfg.factor*radius*((j+1)/cfg.levels);
g.selectAll(".levels").data(allAxis).enter().append("svg:line")
Expand Down

0 comments on commit ac5904e

Please sign in to comment.