Skip to main content
Public

Share visualization

Loading preview…

Marks and Channels_NH_2

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Marks and Channels_NH_2

0
NNavak94
Last edited Feb 7, 2023
Created on Feb 7, 2023

This example visualizes daily solar energy production data from a Bloomington Parks & Recreation site by encoding wattage values through bar length. The visualization arranges seven rectangles along an x-axis, where each bar’s height corresponds to the wattage measurement for a given day. The implementation uses D3 v7 with a band scale for positioning the bars and renders them as SVG rectangles. Color is applied via the `schemeCategory10` palette, and the code structure separates the bar-drawing logic into a reusable `length` function that receives the dataset and height parameters.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed