Color Plot
✓ Published0🌍 Public
This stacked bar chart visualizes vitamin deficiency levels across different fruits, with each colored segment representing a nutrient subgroup from a CSV dataset loaded via d3.csv. The chart uses d3.stack to compute stacked series, d3.scaleBand for the x-axis, d3.scaleLinear for the y-axis, and d3.schemeSet2 for ordinal color encoding. Hovering over any rectangle highlights all bars for that nutrient subgroup by adjusting opacity via d3.selectAll, while non-selected bars fade to create focus. The SVG rendering uses d3.v4 with axis generators for labeled scales.
AI-generated descriptionMIT Licensed