Skip to main content
100%

bhavya-linechart_ice7

✓ Published0🌍 Public
Bbhavyapokuri123@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

This example shows the number of hotel bookings per year from 2013 to 2020, filtered to only those years, as a line chart with circular point markers. It uses D3 v5’s `csv` loader to fetch the data from a GitHub-hosted CSV, `scalePoint` for the categorical year axis, `scaleLinear` for the count axis, and `line` plus `axisBottom` and `axisLeft` to draw the chart. The SVG is rendered with a steelblue stroke and fill, with a title added as an SVG text element.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes