Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot with Menus Electrical Data

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

Scatter Plot with Menus Electrical Data

0
PPeter Cordone
Last edited Oct 6, 2021
Created on Oct 5, 2021

A scatter plot displays electrical usage data for a single account, with dropdown menus to switch the X and Y axes between categorical fields like year and account. The visualization uses D3 v6 with reusable chart and menu components, leveraging `selection.join` for smooth enter-update-exit transitions and animated circle positioning over one second. Data loads from a CSV file, and axes scale linearly or by point depending on the selected variable type.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed