Home · mbostock/d3 Wiki
VISUALIZING MATHS & PHYSICS
Raphaël—JavaScript Library
xml - SQL Server SELECT to JSON function
Max Roser – Economist
RGraph: HTML5 charts library (Open Source!)
The world’s top 50 billionaires: A demographic breakdown.
Top 50 Billionaire Breakdown If you asked anyone to picture the wealthiest person in the world at any given time, you could bet on some common denominators: probably a man; probably somehow attached to the words “multinational” or “conglomerate”; probably on a yacht off a private island. With Slate’s Top 50 Billionaire Breakdown, we attempt to visualize the richest of the rich by paring them into demographic categories: age, location, industry, source of wealth, education, and religious affiliation. Some of the sortings are heartening: There are more self-made men than born-rich kids in the top 50, and the self-made billionaires’ total wealth is bigger. Some are less so: The entire African continent has the same number of billionaires as Canada (one each), and there isn’t a single woman in the top 50 who’s self-made. (We’re rooting for you, Wu Yajun!) Correction, Nov. 18, 2013: The interactive originally mislabeled the Koch brothers as Jewish.
Our World in Data — Visualising the Empirical Evidence on how the World is Changing
Flot: Attractive JavaScript plotting for jQuery
d3.legend example
d3.legend d3.legend is a quick hack to add a legend to a d3 chart. Simply add a g and .call(d3.legend). Any elements that have a title set in the "data-legend" attribute will be included when d3.legend is called. Each title will appear only once (even when multiple items define the same data-legend) as the process uses a set based on a existing names, not an array of all items. Color By default the color in the legend will try to match the fill attribute or the stroke attribute of the relevant items. Order The order of items in the legend will be sorted using the top of the bounding box for each included item. Padding Padding will be determined by attribute "data-style-padding" on the legend element. Size Size of the box is determined by font size, as items are placed using "em" and the frame around the items is based on the bounding box. This Example This example takes an existing Gist and adds a legend by defining data-legend for each series and calling d3.legend on a "g" element.
Northwestern University Center for Interdisciplinary Exploration and Research in Astrophysics - Stellar Evolution
The Formation of Nuclear Star Clusters by Fabio Antonini The three simulations correspond to different initial distributions for the cluster orbits. Most galaxies, including the Milky Way, contain massive (10^7 Solar masses) star clusters at their center. Understanding the formation of such nuclear star clusters is important as it could shed light on the processes that have shaped the central regions of galaxies and led to the formation of their central black holes. This visualization shows the (simulated) formation of a compact nuclear star cluster at the center of the dwarf starburst galaxy Henize 2-10. These clusters, the galaxy (Henize 2-10), and the central BH were realized adopting a particle by particle representation and then evolved forward in time with a GPU-based N-body code. Credit: simulations by Arca-Sedda, M., Capuzzo-Dolcetta, Antonini, F. and Seth., A. Download movies: S1, S2, S3 The Late Evolution of Our Solar System by Aaron Geller Download movie Download movie
Cubism.js
Time Series Visualization foo7.6 bar−6.2 foo + bar1.4 foo - bar14 Cubism.js is a D3 plugin for visualizing time series. Scalable Cubism fetches time series data incrementally: after the initial display, Cubism reduces server load by polling only the most recent values. Effective Cubism also scales in terms of perception: small multiples aligned by time facilitate rapid comparison. Area (120px)7.6 Area (30px)7.6 In contrast, horizon charts reduce vertical space without losing resolution. Horizon, 1-band (120px)7.6 Horizon, 2-band (60px)7.6 Horizon, 3-band (40px)7.6 Horizon, 4-band (30px)7.6 By combining position and color, horizon charts improve perception: position is highly effective at discriminating small changes, while color differentiates large changes. Flexible Cubism is data-source agnostic. Want to learn more?
Parallel Sets
Titanic Survivors Explanation For each dimension (Survived, Sex, Age and Class), a horizontal bar is shown for each of its possible categories. Starting with the first dimension (Survived), each of its categories is connected to a number of categories in the next dimension, showing how that category is subdivided. In fact, you can imagine Parallel Sets as being an icicle plot, with icicles of the same category being “bundled” together. Drag the dimensions and categories to reorder them. Women and Children First? We can see at a glance that the relative proportion of surviving women is far greater than that of the men. As for children, it becomes clearer when we drag the Age dimension up: around half the children survived. Do It Yourself The code is available as a reusable D3.js chart: d3.parsets. The input data should be bound to the target selection. Alternatives For multivariate categorical data, the mosaic plot (or Marimekko chart) is a powerful alternative. Implementation Notes