Charts for Fun
Two linked charts display temperature data over time, with a bar chart and a scatter plot sharing the same dataset and axes. The bar chart uses `scaleBand` for the y-axis and `scaleLinear` for the x-axis, while the scatter plot employs `scalePoint` for discrete timestamps. Both render as SVG and customize D3 v5 axes with `axisLeft` and `axisBottom`, removing domain lines and adding axis labels. The data comes from a CSV file loaded via `csv()`, with temperature values multiplied by 1000 for display.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.