Project_crop_yield
✓ Published0🌍 Public
This horizontal bar chart visualizes crop yield data, comparing production across different crops. The chart uses a linear scale for the x-axis representing production values and a band scale for the categorical crop names on the y-axis. Built with React and D3.v5, the visualization imports local modules like `AxisBottom`, `AxisLeft`, and `Marks` to render SVG elements. Data is loaded from a CSV file using D3's `csv` function, with tooltips displaying formatted values via `d3.format`. The bars are colored steel blue, and axis ticks use custom styling.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed