Skip to content

Commit

Permalink
[Feature] Add DAP watermark to bubble chart
Browse files Browse the repository at this point in the history
  • Loading branch information
levinmr committed Feb 26, 2025
1 parent cb28edb commit 5991fda
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions images/dap-watermark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions js/components/visualizations/TopPagesCircleGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,15 @@ function TopPagesCircleGraph({ dataHrefBase }) {
.style("display", (d) => (d.parent === root ? "inline" : "none"))
.text((d) => d.data.name);

// Add DAP watermark SVG
svg
.append("image")
.attr("xlink:href", "/images/dap-watermark.svg")
.attr("width", 175)
.attr("height", 175)
.attr("x", "300")
.attr("y", "300");

// Create the zoom behavior and zoom immediately in to the initial focus node.
svg.on("click", (event) => zoom(event, root));
let focus = root;
Expand Down

0 comments on commit 5991fda

Please sign in to comment.