Online Sales for Purchase value
✓ Published0🌍 Public
This horizontal bar chart displays the number of purchases made for various purchase value categories, limited to the top 15 categories from a CSV of online customer sales. The chart uses React to manage state and render the SVG, while D3 v5 functions like `scaleBand`, `scaleLinear`, `max`, and `csv` handle data loading, scaling, and axis generation. Axes are drawn with D3's `ticks` and custom grid lines, with the x-axis representing purchase counts and the y-axis listing purchase values. The visualization highlights an inverse relationship, where lower purchase values correspond to higher purchase counts.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed