Skip to main content
Public

Share visualization

Loading preview…

Fork of Shapes and Colors with SVG and CSS

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

Fork of Shapes and Colors with SVG and CSS

0
JJack Chen
Last edited Sep 9, 2024
Created on Sep 7, 2024

This example presents two distinct scatter plots built with D3.js v7 and rendered via SVG. The first chart visualizes a CSV dataset of house attributes, plotting GrLivArea against SalePrice, with points colored pink or teal depending on whether the price exceeds $129,000. The second chart displays a static dataset of x/y coordinates, featuring interactive circles that change color and size on mouseover, display a tooltip with coordinates, and allow users to click anywhere on the SVG to add new data points. Both charts use responsive scaling and axis functions like `d3.scaleLinear` and `d3.axisBottom`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed