Skip to main content
100%

Multi-links in tooltips using v7

✓ Published0🌍 Public
Dd3noob
Last edited Jun 19, 2021
Created on Jun 19, 2021

A line chart displays stock closing prices over time, with a small tooltip appearing on mouseover for each data point. The tooltip is a persistent, styled `<div>` that shows the date and price, and includes a hyperlink to a related resource. The chart is rendered with SVG using D3 v7, drawing a path for the data series and circles for individual points. The code uses d3.csv, d3.scaleTime, d3.scaleLinear, d3.axisBottom, and d3.axisLeft, with data sourced from data-link.csv.

AI-generated description

This is a simple graph demonstrating the addition of persistant tooltips with different hyperlinks in a graph.

This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 7 of d3.js.

mit Licensed

Similar vizzes