Wikipedia:Vital articles/TreeMap

{ "version": 2, "name": "treemap", "width": 960, "height": 600, "padding": 2.5, "data": [ {     "name": "tree", "format": { "type": "treejson" },     "values": { "name": "Vital articles", "children": [{"name":"People","children":[{"name":"Artists","size":9},{"name":"Writers","size":19},{"name":"Composers and musicians","size":10},{"name":"Filmmakers","size":4},{"name":"Businesspeople","size":1},{"name":"Explorers","size":8},{"name":"Inventors and scientists","size":21},{"name":"Mathematicians","size":9},{"name":"Philosophers and social scientists","size":16},{"name":"Religious figures","size":9},{"name":"Politicians and leaders","size":26}]},{"name":"History","children":[{"name":"General","size":4},{"name":"History by region","size":9},{"name":"Histories by subject matter","size":8},{"name":"Prehistory","size":6},{"name":"Ancient history","size":15},{"name":"Post-classical history","size":13},{"name":"Modern history","size":20}]},{"name":"Geography","children":[{"name":"General","size":1},{"name":"Countries","size":35},{"name":"Cities","size":18},{"name":"Continents and regions","size":10},{"name":"Hydrological features","size":17},{"name":"Terrestrial features","size":14}]},{"name":"Arts","children":[{"name":"General","size":2},{"name":"Artistic movements","size":4},{"name":"Architecture","size":9},{"name":"Literature","size":8},{"name":"Music","size":8},{"name":"Performing arts","size":6},{"name":"Visual arts","size":10}]},{"name":"Philosophy and religion","children":[{"name":"Philosophy","size":21},{"name":"Religion","size":15},{"name":"Specific religions","size":22}]},{"name":"Everyday life","children":[{"name":"General","size":5},{"name":"Family and kinship","size":9},{"name":"Sexuality and gender","size":5},{"name":"Food and drink","size":23},{"name":"Recreation and entertainment","size":13}]},{"name":"Society and social sciences","children":[{"name":"General","size":10},{"name":"Language","size":28},{"name":"Psychology","size":15},{"name":"Politics and government","size":28},{"name":"Business and economics","size":24},{"name":"Social issues","size":33},{"name":"Media","size":5}]},{"name":"Health and medicine","children":[{"name":"Illness and injury","size":21},{"name":"Health, fitness, and medicine","size":11},{"name":"Drugs and medicine","size":9}]},{"name":"Science","children":[{"name":"General","size":5},{"name":"Astronomy","size":26},{"name":"Chemistry","size":32},{"name":"Biology","size":67},{"name":"Earth science","size":23},{"name":"Physics","size":40}]},{"name":"Technology","children":[{"name":"General","size":4},{"name":"Energy","size":15},{"name":"Tools and machinery","size":9},{"name":"Weapons","size":10},{"name":"Media and communication","size":10},{"name":"Computing and information technology","size":4},{"name":"Electronics","size":4},{"name":"Food, agriculture and health","size":10},{"name":"Optical","size":5},{"name":"Transportation","size":6},{"name":"Navigation and timekeeping","size":7},{"name":"Materials","size":8},{"name":"Structural engineering","size":8},{"name":"Space","size":4}]},{"name":"Mathematics","children":[{"name":"Basics","size":12},{"name":"Arithmetic","size":8},{"name":"Geometry","size":16},{"name":"Other","size":17}]}] },     "transform": [ {         "type": "treemap", "field": "size" }     ]    }  ],  "scales": [ {     "name": "color", "type": "ordinal", "range": [ "#3182bd", "#6baed6", "#9ecae1", "#c6dbef", "#e6550d", "#fd8d3c", "#fdae6b", "#fdd0a2", "#31a354", "#74c476", "#a1d99b", "#c7e9c0", "#756bb1", "#9e9ac8", "#bcbddc", "#dadaeb", "#636363",       "#969696",        "#bdbdbd", "#d9d9d9" ]   },    {      "name": "size", "type": "ordinal", "domain": [ 0,       1,        2,        3      ],      "range": [ 150,       25,        12,        10      ]    },    {      "name": "opacity", "type": "ordinal", "domain": [ 0,       1,        2,        3      ],      "range": [ 0.15,       0.4,        0.8,        1      ]    }  ],  "marks": [ {     "type": "rect", "from": { "data": "tree", "transform": [ {           "type": "filter", "test": "datum.children" }       ]      },      "interactive": false, "properties": { "enter": { "x": { "field": "layout_x" },         "y": { "field": "layout_y" },         "width": { "field": "layout_width" },         "height": { "field": "layout_height" },         "fill": { "scale": "color", "field": "name" }       }      }    },    {      "type": "rect", "from": { "data": "tree", "transform": [ {           "type": "filter", "test": "!datum.children" }       ]      },      "properties": { "enter": { "x": { "field": "layout_x" },         "y": { "field": "layout_y" },         "width": { "field": "layout_width" },         "height": { "field": "layout_height" },         "stroke": { "value": "#fff" }       },        "update": { "fill": { "value": "rgba(0,0,0,0)" }       },        "hover": { "fill": { "value": "rgba(255,255,255,0.5)" }       }      }    },    {      "type": "text", "from": { "data": "tree", "transform": [ {           "type": "filter", "test": "datum" }       ]      },      "interactive": false, "properties": { "enter": { "x": { "field": "layout_x" },         "y": { "field": "layout_y" },         "dx": { "field": "layout_width", "mult": 0.5 },         "dy": { "field": "layout_height", "mult": 0.5 },         "font": { "value": "Helvetica Neue" },         "fontSize": { "scale": "size", "field": "depth" },         "align": { "value": "center" },         "baseline": { "value": "middle" },         "fill": { "value": "#000" },         "fillOpacity": { "scale": "opacity", "field": "depth" },         "text": { "field": "name" }       }      }    }  ] }