Iterated Clustered Bar Chart - Average Credit Card Utilization by Education Level
This clustered bar chart visualizes average credit card utilization by education level and gender, using data from the Bank Customers Dataset. Six education categories are shown on the x-axis, with male and female averages paired as blue and orange bars respectively on the y-axis. The D3 code groups raw records via a custom `groupBy` function, then renders SVG rectangles with `scaleBand` and `scaleLinear`. Interactive tooltips display the total transaction sum and record count per group, while hover effects temporarily darken bar colors. Axes are formatted with `axisBottom` and `axisLeft`.
AI-generated descriptionWhat's new?
- New selection of colors for the bars.
- More subtle axis ticks and labels.
- New tooltip when hovering over a bar with the number of records and totals used to calculate the average.
- Bars are highlighted when hovering over them.
A clustered bar chart using D3 displaying data of credit card utilization from the Bank Customers Dataset.
The education level of the customers is displayed on the x-axis, the average utilization in dollars on the y-axis and their gender on the color of the bars (blue for males or orange for females).