Skip to main content
100%

Project_crop_yield

✓ Published0🌍 Public
PPothuguntla Pranitha
Last edited Apr 26, 2024
Created on Apr 26, 2024

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes