Fork of Version two: Top Athletes
This interactive bar chart displays the top 40 athletes by medal count, with each bar representing an athlete and its length indicating the number of medals won. Hovering over a bar reveals a tooltip showing the athlete’s full name, medal type, event, and year. Built with the Vega-Lite API, the visualization loads Olympic Games data from a local CSV file via `d3.csv`, and uses `vl.markBar()` to encode the categorical athlete names on the y-axis and the aggregated medal count on the x-axis. The chart also uses `vl.tooltip()` for detail-on-demand and custom axis styling from a shared config object.
AI-generated descriptionA barchart uses vega-lite-api.
Iterate work changes
I changed the font size of the y-axis, and now the full name of the athlete can be displayed. In addition, I increased the number of top athletes. The type of medal is added to the tool tip to clearly show the medals won in the event. The font size of the tooltip has been adjusted.
It is forked from top 20 athlets.
Data and Description
This bar chart shows the top athletes and their medals. It's designed to emphasize the top athletes in olympic games which data is collected by olympic data. Each bar references an athlete.This is an interactive bar chart. When your mouse is pointed at the athlete's bar, it will display the athlete's name, the year of the medal and the event in which the medal was awarded.
The data is extracted from kaggle.