d3.js tool tip with HTML link
A line graph plots stock closing prices over time from a CSV dataset, with circular markers for each data point. The example demonstrates a D3.js tooltip implemented as an HTML div that appears on mouseover, showing the formatted date and price inside a clickable link to Google. The tooltip transitions opacity on hover and stays positioned relative to the mouse event, while the SVG axes and path are rendered using d3.svg.axis and d3.svg.line. The code removes the pointer-events restriction to enable the link interaction.
AI-generated descriptionThis is designed to demonstrate generating tool tips with an HTML link in them. The graph is based on a simple line graph per the book D3 Tips and Tricks and was generated in response to a question on the d3noob.org blog.
The main differences with this example are the addition of the <a> tags in the appropriate places as commented, the removal of the pointer-events: none attribute in the `style section and the slight amending of the transitions of the html divs so that the tool tips stay in place while the mouse moves off the dot.
forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/c37cb8e630aaef7df30d'>d3.js tool tip with HTML link</a>