Skip to content

Commit db78094

Browse files
authored
Merge pull request #197 from mrleblanc101/patch-1
Upgrade d3 version to v7.
2 parents 3badc24 + 7a246b7 commit db78094

File tree

4 files changed

+606
-7
lines changed

4 files changed

+606
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Feel free to use and adapt it for your own purposes.
1414
1. include `d3.js` and `radar.js`:
1515

1616
```html
17-
<script src="https://d3js.org/d3.v4.min.js"></script>
18-
<script src="https://zalando.github.io/tech-radar/release/radar-0.11.js"></script>
17+
<script src="https://d3js.org/d3.v7.min.js"></script>
18+
<script src="https://zalando.github.io/tech-radar/release/radar-0.12.js"></script>
1919
```
2020

2121
2. insert an empty `svg` tag:

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Zalando Tech Radar</title>
99
<link rel="shortcut icon" href="https://www.zalando.de/favicon.ico">
1010

11-
<script src="https://d3js.org/d3.v4.min.js"></script>
11+
<script src="https://d3js.org/d3.v7.min.js"></script>
1212
<script src="radar.js"></script>
1313

1414
<link rel="stylesheet" href="radar.css">

docs/radar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ function radar_visualization(config) {
359359
.text(function(d) { return d.id + ". " + d.label; })
360360
.style("font-family", config.font_family)
361361
.style("font-size", "11px")
362-
.on("mouseover", function(d) { showBubble(d); highlightLegendItem(d); })
363-
.on("mouseout", function(d) { hideBubble(d); unhighlightLegendItem(d); })
362+
.on("mouseover", function(event, d) { showBubble(d); highlightLegendItem(d); })
363+
.on("mouseout", function(event, d) { hideBubble(d); unhighlightLegendItem(d); })
364364
.call(wrap_text)
365365
.each(function() {
366366
previousLegendHeight += d3.select(this).node().getBBox().height;
@@ -481,8 +481,8 @@ function radar_visualization(config) {
481481
.append("g")
482482
.attr("class", "blip")
483483
.attr("transform", function(d, i) { return legend_transform(d.quadrant, d.ring, config.legend_column_width, i); })
484-
.on("mouseover", function(d) { showBubble(d); highlightLegendItem(d); })
485-
.on("mouseout", function(d) { hideBubble(d); unhighlightLegendItem(d); });
484+
.on("mouseover", function(event, d) { showBubble(d); highlightLegendItem(d); })
485+
.on("mouseout", function(event, d) { hideBubble(d); unhighlightLegendItem(d); });
486486

487487
// configure each blip
488488
blips.each(function(d) {

0 commit comments

Comments
 (0)