Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

activity_task2

Public visualization

activity_task2

0 stars0๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed