Skip to main content
100%

ICE- 7 Line Chart

✓ Published0🌍 Public
Cchalasanigayaetiri@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from A5 Line Chart D3

This line chart shows the relationship between study hours and average total marks, with a single line tracing how marks change as study time increases. The chart uses D3.js v7 to load CSV data from a GitHub gist and render an SVG visualization, employing `d3.line()` to generate the path and `d3.scaleLinear()` for both the x- and y-axes. The data, which includes fields for StudyHours and AverageTotalMarks, is fetched asynchronously via `d3.csv()` and converted to numeric values before plotting. Axes are appended using `d3.axisBottom()` and `d3.axisLeft()`, with the line styled as a steelblue stroke without markers.

AI-generated description

Used my old Bar Chart Visualization.

The csv file doesn't quite make sense as the percentage of total smokers should not be less than the percentage of both male and female smokers.

MIT Licensed

Similar vizzes