Skip to main content
Public

Share visualization

Loading preview…

Fork of HTML Starter

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 HTML Starter

0
NNanditha Reddy
Last edited Mar 20, 2024
Created on Mar 20, 2024
Forked from HTML Starter

This example visualizes miles per gallon for various motorcycle models as a horizontal bar chart, sourced from the mtcars dataset. It shows the ranking of each model’s fuel efficiency. The code uses React for component rendering, D3 v5’s `scaleBand` and `scaleLinear` for scales, and `csv` to load the data. Bars are drawn as SVG `rect` elements, with axis ticks and grid lines generated using D3’s `ticks` method. The chart displays values up to the maximum mpg, with a light green page background.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed