Skip to main content
100%

activity_task2

✓ Published0🌍 Public
AArungopal Andalam
Last edited Apr 17, 2024
Created on Apr 15, 2024
Forked from Task8

This example displays a stacked bar chart comparing the values of Nitrogen, normal, and stress conditions across four groups: banana, poacee, sorgho, and triticum. The visualization uses d3.stack() to aggregate the CSV data into stacked segments, with d3.scaleBand() for the categorical x-axis and d3.scaleLinear() for the y-axis. A separate SVG legend is created using d3.scaleOrdinal() to map each subgroup to a distinct color. The bars are rendered as SVG rectangles, with axes labeled "Group" and "Value".

AI-generated description
MIT Licensed

Similar vizzes