🌍 Public
Viewing a saved revision (read-only)
55d8cda63d2440d0a2dad3c051c97fd4
Content Distribution by Maturity Rating
This example visualizes the distribution of Netflix content by maturity rating, ranking the eight most frequent ratings from a CSV dataset. It uses ECharts to render a pie chart, with each slice representing a rating and its share of titles. The code loads `netflix_titles.csv` via `d3.csv`, aggregates the counts in a plain JavaScript object, sorts the ratings descending, and configures the chart with a tooltip showing the title count and percentage. The visualization is initialized with the `'dark'` theme, and the pie series is set directly through ECharts’ option object.
AI-generated description