Skip to main content
100%

TP 2 simple line + mouseover

✓ Published0🌍 Public
HHectorDt
Last edited Nov 9, 2017
Created on Nov 9, 2017

A simple line chart shows monthly values as a single black line with circular gray markers. Hovering a marker turns it red, displays the numeric value in a text label, and draws a dashed vertical guide line to the baseline. The visualization is built with D3 v4, using `d3.scaleTime` and `d3.scaleLinear` for axes, `d3.line` for the path, and `d3.json` to load the data from `dataset.json`. Mouseover and mouseout event handlers dynamically add and remove the tooltip elements and guide line.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/855207ac5fb5c170de59b9c69ea56012'>TP 2 simple line + mouseover</a>

mit Licensed

Similar vizzes