Skip to main content
100%

Chart Controls I

✓ Published0🌍 Public
11Cr18Ni9
Last edited Jan 8, 2017
Created on Jan 8, 2017

This example demonstrates an interactive multi-series line chart where users can toggle the visibility of data for Europe, Asia, and America using radio buttons. The chart renders three time-series lines from a TSV file, with each line colored via a categorical scale. The code uses D3 v3’s `d3.svg.line`, `d3.time.scale`, and `d3.svg.axis` for scaling and axes. Radio button changes apply a CSS class to hide or show entire paths within the SVG group.

AI-generated description

Built with blockbuilder.org

This example is ameliorated from the book Create Web Charts with D3 's chapter 10, with my personal tastes.

That book's example focus on functional redraw.

mit Licensed

Similar vizzes