Skip to content

witmin/datavis-d3-making-basic-charts

Repository files navigation

Basic Charts with D3.js

This repository included series of basic chart creation with D3.js.

The tutorial video is on FreeCodeCamp.org made by Curran Kelleher: https://www.youtube.com/watch?v=_8V5o2UHG0E

This repository used rollup.js as the JavaScript module bundler.

Screenshot of Chart from Branches

Branch: main

Basic Bar Chart

Branch: customizing-axes-of-bar-chart

Basic Bar Chart with axes customized

Branch: area-chart

Area Chart

Branch: area-chart-world-population

Area Chart for World Population

Branch: line-chart

Line Chart

Branch: scatter-plot

Scatter Plot

View the outcome

Open public/index.html in modern browser such as Chrome or Firefox directly.

Further development

To further develop the project by updating JavaScript, can run

npm run bulid

or watch changes and auto compile:

npm run watch

Note for rollup.config.js settings

The output file format must be 'iife' to make advanced function work.

About

D3.js + Rollup.js for simple bar chart, forked curran's tutorial: https://www.youtube.com/watch?v=_8V5o2UHG0E&t=11706s

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages