🌍 Public
Viewing a saved revision (read-only)
32d7777c120a480ba9bec3a80e259445
Most Obese Countries as of 2014
This visualization displays the 80 countries with the highest obesity rates in 2014, ranked from highest to lowest using horizontal bars. The data is loaded from a CSV file via the `d3.csv` method, then sorted with `d3.descending` before being sliced to the top 80 entries. The chart is built using the Vega-Lite API (via `vega-lite-api`), with `markBar`, `vl.y().fieldQ('value')`, and `vl.x().fieldN('Country').sort('-y')` for encoding. Custom axis and label styling is applied through the `config` object.
AI-generated descriptionA visualization of countries with top Global Obesity Rates 2014 using the vega-lite-api.
This variant adds sorting the data before slicing, which makes the top list accurate.