Skip to content

Commit

Permalink
fix: fix radar node click issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 13, 2020
1 parent 992fde9 commit 7b86a2b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class LedgeTechRadarComponent implements OnInit, AfterViewInit {
.enter()
.append('li')
.append('a')
.attr('href', '#radarChart')
// .attr('href', '#radarChart')
.on('click', handleClick)
.text((d: any) => d.name);
}
Expand Down Expand Up @@ -307,9 +307,9 @@ export class LedgeTechRadarComponent implements OnInit, AfterViewInit {
d3.selectAll(`.legend li`)
.filter((d: any) => d === technology)
.classed('active', true);

d3.text(encodeURI(`tech/${data.name.toLocaleLowerCase()}.html`))
.then(text => d3.select('#tech-info').html(text));
//
// d3.text(encodeURI(`tech/${data.name.toLocaleLowerCase()}.html`))
// .then(text => d3.select('#tech-info').html(text));

// follow the href
return true;
Expand Down

0 comments on commit 7b86a2b

Please sign in to comment.