Bar chart - Project
✓ Published0🌍 Public
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 descriptionhi
MIT Licensed