Fork of Making a Bar Chart
This bar chart displays Brazilian public budget expenditures, comparing committed (“Empenhados”) and paid (“Pagos”) values by year. Users can filter the data by fiscal category (“Resultado Primário”) and government function (“Função”) via dropdown menus. The visualization uses D3 v5 with `d3.csv` for data loading, `d3.nest()` for aggregation, and `scaleLinear` and `scaleBand` for axes. Bars are rendered as SVG rectangles, with tooltips on hover and axis labels customized using `axisBottom` and `axisLeft`. Data originates from the provided `orcamentoData.csv` file.
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.