Skip to main content
100%

Bar chart - Project

✓ Published0🌍 Public
Rrajasrilekkala
Last edited Apr 9, 2023
Created on Apr 9, 2023

A green bar chart displays total average daily rate (ADR) for three customer types: Transient, Contract, and Transient-Party, sourced from a CSV file. The visualization uses d3.scaleBand for the x-axis (customer types) and d3.scaleLinear for the y-axis (total ADR). Axes are rendered with d3.axisLeft and d3.axisBottom, while rectangles are appended to an SVG element and sized using the scale band’s bandwidth and derived heights. The labels include rotated y-axis text and an x-axis title, with styling applied via CSS.

AI-generated description

hi

MIT Licensed

Similar vizzes