Skip to main content
100%

d3-annotation: Responsive Types and Hover

✓ Published0🌍 Public
Aalokkshukla
Last edited Aug 3, 2017
Created on Aug 3, 2017

This example demonstrates how to use the d3.annotation library to create annotations that can change type responsively and support hover interactions. It renders an SVG line chart of stock closing prices from a TSV dataset. The visualization includes several annotations on the chart; when the user hovers over an annotation, its type dynamically switches (for example, between a callout and a curve), and the annotation responds interactively. Built with D3 v4, this block shows how to combine d3.annotation with event handlers to create dynamic, responsive data annotations.

AI-generated description

Responsive Types and Hover Example

Made with d3.annotation. An example showing how you can dynamically change the annotation type and add hover events.

forked from <a href='http://bl.ocks.org/susielu/'>susielu</a>'s block: <a href='http://bl.ocks.org/susielu/974e41473737320f8db5ae711ded8542'>d3-annotation: Responsive Types and Hover </a>

mit Licensed

Similar vizzes