Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

D3 Gallery tooltip example

Public visualization

D3 Gallery tooltip example

1 star1๐ŸŒ Public
Mma-jacobs
Last edited Apr 4, 2023
Created on Apr 4, 2023
Forked from Tooltip example

This example shows a heatmap of the `heatmap_data.csv` dataset, with each cell colored according to its value using the `d3.scaleSequential` interpolator with the Inferno color scheme. Hovering over a cell triggers a tooltip that displays the exact value of that cell, implemented via mouse events and the `d3.select` API. The SVG rendering includes axes built with `d3.axisBottom` and `d3.axisLeft`, and the tooltip's position is set using `d3.mouse`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed