Fork of Fork of Making a Bar Chart
This horizontal bar chart visualizes the correlation between red wine quality and eleven chemical attributes, using data from a CSV file. It renders SVG rectangles with a purple fill, scaling bar lengths to correlation coefficients via `d3.scaleLinear` and arranging attributes on a band scale with `d3.scaleBand`. Custom axes are drawn with `d3.axisBottom` and `d3.axisLeft`, including a titled axis label and a chart title. The code loads data asynchronously with `d3.csv` and applies D3 v5 selection methods to build the visualization.
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.