Skip to main content
E

EstelleWalt

@EstelleWalt·2 public vizzes

Loading thumbnail…

Celsa

This animated bubble chart, built with D3 v4, visualizes global health and wealth over time using data from the Gapminder project. The x-axis shows GDP per capita on a logarithmic scale, the y-axis shows life expectancy, and each bubble’s size encodes population, while its color encodes continent. The visualization reads from a CSV dataset containing country-level indicators (population, health, wealth) and iterates through years, though the current code is fixed to display 2010 data. A static snapshot displays circles positioned by life expectancy (y-axis) and GDP per capita (x-axis), with bubble area proportional to population and color mapping to continent. The chart includes labeled axes for GDP per capita and life expectancy, with a large year annotation (2010) in the upper right. The gray background and semi-transparent circles improve readability of overlapping bubbles. The code includes a data-loading pattern that sorts countries by population and renders them as circles, though the animation loop for changing years is initialized but not completed. The visualization uses D3 v4 scales (log scale for wealth, linear for health, sqrt for population, ordinal for continent colors) to map the gapminder dataset across multiple dimensions. While the code defines a `film()` function with an interval for potential temporal animation, only the static 2010 year is displayed in this version. The underlying CSV contains richer data—country, continent, population, health, and wealth metrics—which would support a full animated bubble chart if the temporal dimension were implemented. The result is a static snapshot from what appears intended as a dynamic visualization. The code is incomplete but shows the structure for creating an interactive bubble chart, with x-axis showing GDP per capita (log scale), y-axis showing life expectancy, bubble size representing population, and color representing continent. A time slider or animation functionality would make this complete, but the current state only displays 2010 data. The visualization shows a bubble chart comparing countries across two key development indicators: GDP per capita (x-axis, log scale) and life expectancy (y-axis). Each bubble represents a country, with bubble size encoding population and bubble color representing the continent. The visualization is currently static, showing data from 2010, though the code structure suggests it was designed to be animated over time (the year is displayed prominently and the data contains multiple years). The chart uses a light grey background with semi-transparent circles and black strokes, and axes for GDP per capita and life expectancy. To create a richer and more complete visualization, the following recommendations could be considered: - Add interactivity to display data for individual countries when hovering over or clicking on bubbles, and possibly a year slider. - Add a legend explaining the color encoding for continents. - Animate the chart over the years by implementing the d3.interval logic suggested in the code. - Add a title and a source line. - Add the missing x-axis gridlines. - Add size encoding label, e.g. via a legend. Celsa I forked from <a href='http://bl.ocks.org/EstelleWalt/'>EstelleWalt</a>'s block: <a href='http://bl.ocks.org/EstelleWalt/5baba01d5fb782ba24dea1565f3ab26c'>Celsa</a> Data: <a href='https://rawgit.com/Fil/d3-cours-gapminder/master/by_year.json'</a> <hr/> <a href='https://github.com/blockbuilder/EstelleWalt-b1bc6775e91c98a3dfd9237d6f34b0c5'>fork of: <a href='http://bl.ocks.org/EstelleWalt/5baba01d5fb782ba24dea1565f3ab26c'>Celsa</a> </a> Now, you need to describe this block for a gallery. You must include the following: Data visualization title (1 paragraph) Visual description (1 paragraph) Data description (1 paragraph) The main message (1 paragraph) How it works (1 paragraph) You should not use markdown in your description. The title is already given. Keep the text short and concise. Write it as a single paragraph. Use commas and spaces instead of line breaks. Avoid using markdown syntax. Use this template: Data visualization title: <short title>. Data visualization description: <short description of the chart type, author, and data>. <More specific details> Visual design: <description of visual design choices and how they encode data.> Data and programming: <description of the data and code that makes the visualization work, including data provenance and processing if known.> You have to exactly follow this template and I need it to be clear, concise, and informative. Do not use any markdown formatting. Keep it under 120 words. Write the description in English, but keep the original French axis titles exactly as they are; do not translate them. Also note the "Celsa" title. Use the provided data in the prompt to describe this graph: It is a bubble chart where each bubble is a country, its position is given by life expectancy in y and GDP in x. The bubble size encodes population. This graph uses the classic Gapminder chart with D3 and the by_year.json data file. It's called "Celsa". It has a "play" feature? It does not appear to be included in this code—it's static, even though the code contains a function for animation. I only want the description. --- Description guidelines: ORIGINAL BRIEF CONCISE ONE TO TWO SENTENCES USE PLAIN TEXT NO MARKDOWN Focus on these questions: what type of visualization is it? What does the visualization show? What kind of data is it presenting? Write one-sentence description (the "gist") and the second sentence is supporting details. The first sentence must be very general, as if it is from a data-visualization textbook. The second sentence includes the details of this example. The example should be in a code block, with no additional text. The description is less than 300 characters. Example: Title: Map of the Weird A map of the world colored with the national flags of each country based on their predominant political party. This data is mapped through a chloropleth map, colored using a nominal scale, and the data is from Wikipedia. We can observe Spain and Ireland in red, while most African countries are colored in purple. (This is just an example; it is about the format of your description, not the content.)A bubble chart of Gapminder-style data showing each country as a circle positioned by wealth (log-scaled GDP per capita) on the x-axis and health (life expectancy) on the y-axis, with circle size encoding population and color encoding continent. A year label is displayed, although the visualization renders only the 2010 data snapshot.

Jun 23, 2017