Skip to main content
Public

Share visualization

Loading preview…

Color Plot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Color Plot

0
BBhanu Siva Kumar Kommana
Last edited Apr 10, 2023
Created on Apr 10, 2023

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 description

Comments

Sign in to join the discussion.

MIT Licensed