Skip to main content
Public

Share visualization

Loading preview…

Basic Line Plot

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

Basic Line Plot

0
BBhanu Siva Kumar Kommana
Last edited Apr 10, 2023
Created on Apr 10, 2023

This basic line plot displays the number of online orders received over time, with dates on the x-axis and order values on the y-axis. The visualization uses D3.js v4 to load CSV data from a GitHub repository, parse dates with `d3.timeParse`, and render the chart as an SVG. Axes are created with `d3.axisBottom` and `d3.axisLeft`, while the line itself is drawn using `d3.line` with a red stroke. The chart is sized with explicit margins and scales using `d3.scaleTime` and `d3.scaleLinear`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed