Skip to main content
100%

D3: Unit Bar Chart with Brush and Zoom

✓ Published0🌍 Public
TThanaporn-sk
Last edited Jan 13, 2020
Created on Jan 13, 2020

This example visualizes message-sending activity over time as a unit bar chart, where each orange circle represents a message sent on a given date, with the y-axis showing the count of messages per day. The chart combines a main focus panel with a smaller context panel below, enabling both brush-based selection and zooming to explore specific date ranges. It loads data from a CSV file, using D3 v4’s time scale, axis, brushX, and zoom APIs to render the SVG scatter plot and synchronize the two panels. The total message count for the visible range updates dynamically as the user interacts.

AI-generated description

forked from <a href='http://bl.ocks.org/misanuk/'>misanuk</a>'s block: <a href='http://bl.ocks.org/misanuk/fc39ecc400eed9a3300d807783ef7607'>D3: Unit Bar Chart with Brush and Zoom</a>

forked from <a href='http://bl.ocks.org/aendrew/'>aendrew</a>'s block: <a href='http://bl.ocks.org/aendrew/6216809b022682bb8c247d37b9df32dc'>D3: Unit Bar Chart with Brush and Zoom</a>

forked from <a href='http://bl.ocks.org/zhangzihaoDT/'>zhangzihaoDT</a>'s block: <a href='http://bl.ocks.org/zhangzihaoDT/eeb10cf248381f984386cf0bd7ec5b23'>D3: Unit Bar Chart with Brush and Zoom</a>

mit Licensed

Similar vizzes