Skip to main content
Public

Share visualization

Loading preview…

piechart_linechart

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

piechart_linechart

0
GGorantla Vishnusai
Last edited Apr 2, 2025
Created on Apr 2, 2025

This example shows a line chart depicting the relationship between fuel efficiency and engine size for a car dataset. The SVG visualization uses D3.js v6 to load CSV data from a GitHub gist, parse numeric values, and render a single blue line path via `d3.line()`. Linear scales (`d3.scaleLinear`) map the fixed domains for fuel efficiency and engine size, while axes are generated with `d3.axisBottom()` and `d3.axisLeft()`. The chart includes labeled axes for fuel efficiency and engine size, with margins and dimensions set explicitly in the code.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed