Skip to main content
100%

Word Sentiment Distribution

✓ Published1🌍 Public
PPeter Gish
Last edited Apr 9, 2022
Created on Apr 9, 2022
Forked from Hello VizHub

This visualization displays the sentiment distribution of words from a Russia-Ukraine Twitter dataset, using a stacked horizontal bar chart segmented into negative, positive, and neutral categories. The bar’s segments are scaled proportionally to each sentiment’s percentage, labeled with their exact values. Built with D3.js v7, it loads CSV data from a remote repository, maps sentiment colors via `d3.scaleOrdinal`, and positions rectangles using `d3.scaleLinear`. The chart includes an SVG-based legend generated with the d3-legend library and custom axes.

AI-generated description
MIT Licensed

Similar vizzes