Skip to main content
100%

MasteringD3-Resusable-ProD3js-2.3D

✓ Published1🌍 Public
JJimMaltby
Last edited Dec 8, 2021
Created on Dec 5, 2021

This example demonstrates a reusable bar-code chart that visualizes hourly mention data for named items over a single day. It combines an HTML table listing names and mention counts with an SVG timeline of vertical bars, using d3.scaleTime for the x-axis and d3.timeDay for date intervals. The chart follows the ProD3 pattern for modular, testable code and is built with d3.v5, rendering both SVG and animated elements within a single container.

AI-generated description

Exploration of bar code chart example, from Chapter 2 of Mastering D3.

It is derived from Mike Bostock's Towards Reusable Charts (https://bost.ocks.org/mike/chart/) as the source of the foundational principles.

Using the ProD3 pattern (Pro D3.js Use D3.js to Create Maintainable, Modular, and Testable Charts by Marcos Iglesias https://www.apress.com/gp/book/9781484252024) as the basis for charts pattern.

MIT Licensed

Similar vizzes