Word Sentiment Distribution - Predictive
✓ Published0🌍 Public
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 descriptionMIT Licensed