Skip to main content
100%

Word Sentiment Distribution - Predictive

✓ Published0🌍 Public
PPeter Gish
Last edited Jul 15, 2022
Created on Jul 15, 2022

A donut chart displays the predicted sentiment distribution of words from a Russia-Ukraine Twitter analysis dataset, breaking percentages into negative, positive, and neutral categories. The visualization uses d3.pie and d3.arc to generate the chart, with d3.scaleOrdinal mapping sentiment categories to distinct colors. Percent labels are positioned using d3.arc centroids, and a categorical legend is rendered via the d3-legend plugin's d3.legendColor. The data is loaded as CSV from a GitHub repository, and the SVG rendering uses a custom viewBox with margins and a fixed radius for the arc paths.

AI-generated description
MIT Licensed

Similar vizzes