Skip to main content
Public

Share visualization

Loading preview…

my Filter Chart - Do Not edit

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

my Filter Chart - Do Not edit

1
Mmab3105
Last edited Feb 19, 2020
Created on Feb 13, 2020
Forked from Untitled

This interactive line chart displays monthly energy consumption (SumOfKwh) for different building sites, loaded from the CSV file `MonthData.csv`. A dropdown menu, populated from the first column, allows the user to select a site, which triggers a smooth 1-second animated transition of the line to show that site's time series. The visualization uses the D3.js v4 library, specifically `d3.csv` for data loading, `d3.scaleBand` and `d3.scaleLinear` for the axes, and `d3.line` to generate the path, with the color assigned via a categorical `d3.schemeSet2` scale.

AI-generated description

New Chart in v5

Comments

Sign in to join the discussion.

MIT Licensed