A block bar chart about changes to the gender and racial diversity in the Cabinet members of U.S.A. over time (per each president). This example covers transformation strategies for transpose, tooltips, and nondata elements. Further descriptions are available in Kim et al. (2021). For demonstration purpose, we did not include images.
{
"name": "us-cabinet-entire-mobile",
"layout": {
"width": 375,
"height": 800,
"composition": "single",
"column": [
{
"field": "president",
"type": "nominal",
"sort": {
"order": [
"Donald J. Trump",
"Barack Obama",
"George W. Bush",
"Bill Clinton",
"George Bush",
"Ronald Reagan"
]
}
}
],
"row": [
{
"field": "inner",
"type": "nominal",
"sort": {
"order": [
true,
false
]
}
},
{
"field": "position_num",
"type": "ordinal",
"scale": {
"range": [
0,
512
]
}
}
],
"haxis": {
"orient": "top",
"offset": 15
}
},
"layer": [
{
"mark": {
"type": "rect",
"stroke": {
"value": "white"
},
"color": {
"field": "cat",
"type": "nominal",
"scale": {
"domain": [
"female_non-white",
"female_white",
"male_non-white",
"male_white"
],
"range": [
"#af47ff",
"#c59ae6",
"#b3ba8f",
"#e0e0e0"
]
}
}
},
"text": [
{
"type": "on-axis",
"field": "president",
"anchor": "start",
"serial": false,
"items": [
{
"align": "center",
"fontSize": 16,
"fontWeight": 700,
"width": 70,
"expression": "({\"Donald J. Trump\":\"Trump\",\"Barack Obama\":\"Obama\",\"George W. Bush\":\"W. Bush\",\"Bill Clinton\":\"Clinton\",\"George Bush\":\"Bush\",\"Ronald Reagan\":\"Reagan\"}[datum.value] ? {\"Donald J. Trump\":\"Trump\",\"Barack Obama\":\"Obama\",\"George W. Bush\":\"W. Bush\",\"Bill Clinton\":\"Clinton\",\"George Bush\":\"Bush\",\"Ronald Reagan\":\"Reagan\"}[datum.value] : datum.value )"
}
]
}
],
"tooltip": {
"visibility": "fixed",
"fields": [
{
"field": "name"
},
{
"field": "position"
}
]
}
}
],
"title": {
"align": "center",
"items": [
{
"text": "The first cabinets of each president",
"align": "center",
"fontSize": 16,
"fontWeight": 700,
"offset": 20
},
{
"text": "CABINET MEMBERS LISTED IN ORDER OF PRESIDENTIAL SUCCESSION",
"fontColor": "#999999",
"align": "center",
"fontSize": 13
}
]
},
"nondata": {
"items": [
{
"type": "mark",
"width": 186,
"height": 18,
"x": 5,
"y": 150,
"dx": "-50%",
"name": "range_1",
"mark": {
"image": "image/arm_range_1.png"
},
"rotate": -90
},
{
"type": "text",
"width": 35,
"x": -20,
"y": 150,
"dx": "-50%",
"text": [
{
"text": "INNER CABINET",
"fontColor": "#999999",
"align": "center",
"fontSize": 10
}
]
},
{
"type": "text",
"width": 300,
"x": 26,
"y": 565,
"dx": 0,
"text": [
{
"text": "NOT IN PRESIDENTIAL SUCCESSION",
"fontColor": "#999999",
"fontSize": 13,
"align": "left"
}
]
}
]
},
"data": [
{
"name": "Mike Pence",
"position": "Vice President",
"position_num": 1,
"id": 64,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-64.png"
},
{
"name": "Rex W. Tillerson",
"position": "Secretary of State",
"position_num": 2,
"id": 65,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-65.png"
},
{
"name": "Steven Mnuchin",
"position": "Secretary of the Treasury",
"position_num": 3,
"id": 66,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-66.png"
},
{
"name": "James N. Mattis",
"position": "Secretary of Defense",
"position_num": 4,
"id": 67,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-67.png"
},
{
"name": "Jeff Sessions",
"position": "Attorney General",
"position_num": 5,
"id": 68,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-68.png"
},
{
"name": "Ryan Zinke",
"position": "Secretary of the Interior",
"position_num": 6,
"id": 69,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-69.png"
},
{
"name": "Sonny Perdue",
"position": "Secretary of Agriculture",
"position_num": 7,
"id": 120,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-120.png"
},
{
"name": "Wilbur Ross",
"position": "Secretary of Commerce",
"position_num": 8,
"id": 70,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-70.png"
},
{
"name": "R. Alexander Acosta",
"position": "Secretary of Labor",
"position_num": 9,
"id": 71,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-71.png"
},
{
"name": "Tom Price",
"position": "Secretary of Health and Human Services",
"position_num": 10,
"id": 72,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-72.png"
},
{
"name": "Ben Carson",
"position": "Secretary of Housing and Urban Development",
"position_num": 11,
"id": 73,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-73.png"
},
{
"name": "Elaine L. Chao",
"position": "Secretary of Transportation",
"position_num": 12,
"id": 23,
"gender": "female",
"race": "non-white",
"cat": "female_non-white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-23.png"
},
{
"name": "Rick Perry",
"position": "Secretary of Energy",
"position_num": 13,
"id": 74,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-74.png"
},
{
"name": "Betsy DeVos",
"position": "Secretary of Education",
"position_num": 14,
"id": 75,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-75.png"
},
{
"name": "David J. Shulkin",
"position": "Secretary of Veterans Affairs",
"position_num": 15,
"id": 46,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-46.png"
},
{
"name": "John F. Kelly",
"position": "Secretary of Homeland Security",
"position_num": 16,
"id": 76,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": true,
"image": "/image/us-cabinet-76.png"
},
{
"name": "Reince Preibus",
"position": "Chief of Staff",
"position_num": 1,
"id": 77,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": false,
"image": "/image/us-cabinet-77.png"
},
{
"name": "Robert Lighthizer",
"position": "United States Trade Representative",
"position_num": 2,
"id": 114,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": false,
"image": "/image/us-cabinet-114.png"
},
{
"name": "Dan Coats",
"position": "Director of National Intelligence",
"position_num": 3,
"id": 121,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": false,
"image": "/image/us-cabinet-121.png"
},
{
"name": "Nikki R. Haley",
"position": "United Nations Ambassador",
"position_num": 4,
"id": 80,
"gender": "female",
"race": "non-white",
"cat": "female_non-white",
"president": "Donald J. Trump",
"inner": false,
"image": "/image/us-cabinet-80.png"
},
{
"name": "Mick Mulvaney",
"position": "Director of the Office of Management and Budget",
"position_num": 5,
"id": 79,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": false,
"image": "/image/us-cabinet-79.png"
},
{
"name": "Mike Pompeo",
"position": "Director of the Central Intelligence Agency",
"position_num": 6,
"id": 122,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": false,
"image": "/image/us-cabinet-122.png"
},
{
"name": "Scott Pruitt",
"position": "Environmental Protection Agency Administrator",
"position_num": 7,
"id": 78,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Donald J. Trump",
"inner": false,
"image": "/image/us-cabinet-78.png"
},
{
"name": "Linda E. McMahon",
"position": "Administrator of the Small Business Administration",
"position_num": 8,
"id": 81,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Donald J. Trump",
"inner": false,
"image": "/image/us-cabinet-81.png"
},
{
"name": "Joseph R. Biden Jr.",
"position": "Vice President",
"position_num": 1,
"id": 2,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-2.png"
},
{
"name": "Hillary Clinton",
"position": "Secretary of State",
"position_num": 2,
"id": 4,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-4.png"
},
{
"name": "Timothy F. Geithner",
"position": "Secretary of the Treasury",
"position_num": 3,
"id": 6,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-6.png"
},
{
"name": "Robert M. Gates",
"position": "Secretary of Defense",
"position_num": 4,
"id": 9,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-9.png"
},
{
"name": "Eric H. Holder Jr.",
"position": "Attorney General",
"position_num": 5,
"id": 11,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-11.png"
},
{
"name": "Ken Salazar",
"position": "Secretary of the Interior",
"position_num": 6,
"id": 14,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-14.png"
},
{
"name": "Tom Vilsack",
"position": "Secretary of Agriculture",
"position_num": 7,
"id": 16,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-16.png"
},
{
"name": "Gary Locke",
"position": "Secretary of Commerce",
"position_num": 8,
"id": 19,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-19.png"
},
{
"name": "Hilda L. Solis",
"position": "Secretary of Labor",
"position_num": 9,
"id": 22,
"gender": "female",
"race": "non-white",
"cat": "female_non-white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-22.png"
},
{
"name": "Kathleen Sebelius",
"position": "Secretary of Health and Human Services",
"position_num": 10,
"id": 25,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-25.png"
},
{
"name": "Shaun Donovan",
"position": "Secretary of Housing and Urban Development",
"position_num": 11,
"id": 28,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-28.png"
},
{
"name": "Ray H. LaHood",
"position": "Secretary of Transportation",
"position_num": 12,
"id": 31,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-31.png"
},
{
"name": "Steven Chu",
"position": "Secretary of Energy",
"position_num": 13,
"id": 36,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-36.png"
},
{
"name": "Arne Duncan",
"position": "Secretary of Education",
"position_num": 14,
"id": 39,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-39.png"
},
{
"name": "Eric K. Shinseki",
"position": "Secretary of Veterans Affairs",
"position_num": 15,
"id": 42,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-42.png"
},
{
"name": "Janet Napolitano",
"position": "Secretary of Homeland Security",
"position_num": 16,
"id": 45,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Barack Obama",
"inner": true,
"image": "/image/us-cabinet-45.png"
},
{
"name": "Rahm Emanuel",
"position": "Chief of Staff",
"position_num": 1,
"id": 47,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Barack Obama",
"inner": false,
"image": "/image/us-cabinet-47.png"
},
{
"name": "Lisa P. Jackson",
"position": "Environmental Protection Agency Administrator",
"position_num": 2,
"id": 50,
"gender": "female",
"race": "non-white",
"cat": "female_non-white",
"president": "Barack Obama",
"inner": false,
"image": "/image/us-cabinet-50.png"
},
{
"name": "Peter R. Orszag",
"position": "Director of the Office of Management and Budget",
"position_num": 3,
"id": 53,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Barack Obama",
"inner": false,
"image": "/image/us-cabinet-53.png"
},
{
"name": "Ronald Kirk",
"position": "United States Trade Representative",
"position_num": 4,
"id": 56,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Barack Obama",
"inner": false,
"image": "/image/us-cabinet-56.png"
},
{
"name": "Susan E. Rice",
"position": "United Nations Ambassador",
"position_num": 5,
"id": 59,
"gender": "female",
"race": "non-white",
"cat": "female_non-white",
"president": "Barack Obama",
"inner": false,
"image": "/image/us-cabinet-59.png"
},
{
"name": "Christina D. Romer",
"position": "Chair of the Council of Economic Advisers",
"position_num": 6,
"id": 61,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Barack Obama",
"inner": false,
"image": "/image/us-cabinet-61.png"
},
{
"name": "Dick Cheney",
"position": "Vice President",
"position_num": 1,
"id": 3,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-3.png"
},
{
"name": "Colin L. Powell",
"position": "Secretary of State",
"position_num": 2,
"id": 35,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-35.png"
},
{
"name": "Paul H. ONeill",
"position": "Secretary of the Treasury",
"position_num": 3,
"id": 7,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-7.png"
},
{
"name": "Donald H. Rumsfeld",
"position": "Secretary of Defense",
"position_num": 4,
"id": 10,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-10.png"
},
{
"name": "John D. Ashcroft",
"position": "Attorney General",
"position_num": 5,
"id": 12,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-12.png"
},
{
"name": "Gale A. Norton",
"position": "Secretary of the Interior",
"position_num": 6,
"id": 1,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-1.png"
},
{
"name": "Ann M. Veneman",
"position": "Secretary of Agriculture",
"position_num": 7,
"id": 17,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-17.png"
},
{
"name": "Donald L. Evans",
"position": "Secretary of Commerce",
"position_num": 8,
"id": 20,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-20.png"
},
{
"name": "Elaine L. Chao",
"position": "Secretary of Labor",
"position_num": 9,
"id": 23,
"gender": "female",
"race": "non-white",
"cat": "female_non-white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-23.png"
},
{
"name": "Tommy G. Thompson ",
"position": "Secretary of Health and Human Services",
"position_num": 10,
"id": 26,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-26.png"
},
{
"name": "Mel Martinez",
"position": "Secretary of Housing and Urban Development",
"position_num": 11,
"id": 29,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-29.png"
},
{
"name": "Norman Y. Mineta",
"position": "Secretary of Transportation",
"position_num": 12,
"id": 32,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-32.png"
},
{
"name": "Spencer Abraham",
"position": "Secretary of Energy",
"position_num": 13,
"id": 37,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-37.png"
},
{
"name": "Rod Paige",
"position": "Secretary of Education",
"position_num": 14,
"id": 40,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-40.png"
},
{
"name": "Anthony Principi",
"position": "Secretary of Veterans Affairs",
"position_num": 15,
"id": 43,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": true,
"image": "/image/us-cabinet-43.png"
},
{
"name": "Andrew Card",
"position": "Chief of Staff",
"position_num": 1,
"id": 48,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": false,
"image": "/image/us-cabinet-48.png"
},
{
"name": "Christine Todd Whitman",
"position": "Environmental Protection Agency Administrator",
"position_num": 2,
"id": 51,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "George W. Bush",
"inner": false,
"image": "/image/us-cabinet-51.png"
},
{
"name": "Mitchell E. Daniels Jr.",
"position": "Director of the Office of Management and Budget",
"position_num": 3,
"id": 54,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": false,
"image": "/image/us-cabinet-54.png"
},
{
"name": "Robert B. Zoellick",
"position": "United States Trade Representative",
"position_num": 4,
"id": 57,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": false,
"image": "/image/us-cabinet-57.png"
},
{
"name": "John P. Walters",
"position": "Director of the Office of National Drug Control Policy",
"position_num": 5,
"id": 115,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George W. Bush",
"inner": false,
"image": "/image/us-cabinet-115.png"
},
{
"name": "Al Gore",
"position": "Vice President",
"position_num": 1,
"id": 34,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-34.png"
},
{
"name": "Warren M. Christopher",
"position": "Secretary of State",
"position_num": 2,
"id": 5,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-5.png"
},
{
"name": "Lloyd M. Bentsen",
"position": "Secretary of the Treasury",
"position_num": 3,
"id": 8,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-8.png"
},
{
"name": "Les Aspin",
"position": "Secretary of Defense",
"position_num": 4,
"id": 116,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-116.png"
},
{
"name": "Janet Reno",
"position": "Attorney General",
"position_num": 5,
"id": 13,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-13.png"
},
{
"name": "Bruce Babbitt",
"position": "Secretary of the Interior",
"position_num": 6,
"id": 15,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-15.png"
},
{
"name": "Mike Espy",
"position": "Secretary of Agriculture",
"position_num": 7,
"id": 18,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-18.png"
},
{
"name": "Ronald H. Brown",
"position": "Secretary of Commerce",
"position_num": 8,
"id": 21,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-21.png"
},
{
"name": "Robert B. Reich",
"position": "Secretary of Labor",
"position_num": 9,
"id": 24,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-24.png"
},
{
"name": "Donna Shalala",
"position": "Secretary of Health and Human Services",
"position_num": 10,
"id": 27,
"gender": "female",
"race": "non-white",
"cat": "female_non-white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-27.png"
},
{
"name": "Henry G. Cisneros",
"position": "Secretary of Housing and Urban Development",
"position_num": 11,
"id": 30,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-30.png"
},
{
"name": "Federico Peña",
"position": "Secretary of Transportation",
"position_num": 12,
"id": 33,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-33.png"
},
{
"name": "Hazel R. OLeary",
"position": "Secretary of Energy",
"position_num": 13,
"id": 38,
"gender": "female",
"race": "non-white",
"cat": "female_non-white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-38.png"
},
{
"name": "Richard Riley",
"position": "Secretary of Education",
"position_num": 14,
"id": 41,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-41.png"
},
{
"name": "Jesse Brown",
"position": "Secretary of Veterans Affairs",
"position_num": 15,
"id": 44,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Bill Clinton",
"inner": true,
"image": "/image/us-cabinet-44.png"
},
{
"name": "Thomas F. McLarty III",
"position": "Chief of Staff",
"position_num": 1,
"id": 49,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": false,
"image": "/image/us-cabinet-49.png"
},
{
"name": "Carol M. Browner",
"position": "Environmental Protection Agency Administrator",
"position_num": 2,
"id": 52,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Bill Clinton",
"inner": false,
"image": "/image/us-cabinet-52.png"
},
{
"name": "Leon E. Panetta",
"position": "Director of the Office of Management and Budget",
"position_num": 3,
"id": 55,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": false,
"image": "/image/us-cabinet-55.png"
},
{
"name": "Mickey Kantor",
"position": "United States Trade Representative",
"position_num": 4,
"id": 58,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Bill Clinton",
"inner": false,
"image": "/image/us-cabinet-58.png"
},
{
"name": "Madeleine K. Albright",
"position": "United Nations Ambassador",
"position_num": 5,
"id": 60,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Bill Clinton",
"inner": false,
"image": "/image/us-cabinet-60.png"
},
{
"name": "Laura D’Andrea Tyson",
"position": "Chair of the Council of Economic Advisers",
"position_num": 6,
"id": 62,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Bill Clinton",
"inner": false,
"image": "/image/us-cabinet-62.png"
},
{
"name": "Lee P. Brown",
"position": "Director of the Office of National Drug Control Policy",
"position_num": 7,
"id": 117,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Bill Clinton",
"inner": false,
"image": "/image/us-cabinet-117.png"
},
{
"name": "Dan Quayle",
"position": "Vice President",
"position_num": 1,
"id": 82,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-82.png"
},
{
"name": "James A. Baker ",
"position": "Secretary of State",
"position_num": 2,
"id": 83,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-83.png"
},
{
"name": "Nicholas F. Brady",
"position": "Secretary of the Treasury",
"position_num": 3,
"id": 84,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-84.png"
},
{
"name": "Dick Cheney",
"position": "Secretary of Defense",
"position_num": 4,
"id": 85,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-85.png"
},
{
"name": "Dick Thornburgh",
"position": "Attorney General",
"position_num": 5,
"id": 86,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-86.png"
},
{
"name": "Manuel Lujan Jr.",
"position": "Secretary of the Interior",
"position_num": 6,
"id": 87,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-87.png"
},
{
"name": "Clayton Yeutter",
"position": "Secretary of Agriculture",
"position_num": 7,
"id": 88,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-88.png"
},
{
"name": "Robert A. Mosbacher",
"position": "Secretary of Commerce",
"position_num": 8,
"id": 89,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-89.png"
},
{
"name": "Elizabeth H. Dole",
"position": "Secretary of Labor",
"position_num": 9,
"id": 90,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-90.png"
},
{
"name": "Dr. Louis W. Sullivan",
"position": "Secretary of Health and Human Services",
"position_num": 10,
"id": 91,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-91.png"
},
{
"name": "Jack F. Kemp",
"position": "Secretary of Housing and Urban Development",
"position_num": 11,
"id": 92,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-92.png"
},
{
"name": "Samuel K. Skinner",
"position": "Secretary of Transportation",
"position_num": 12,
"id": 93,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-93.png"
},
{
"name": "James D. Watkins",
"position": "Secretary of Energy",
"position_num": 13,
"id": 94,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-94.png"
},
{
"name": "Lauro F. Cavazos ",
"position": "Secretary of Education",
"position_num": 14,
"id": 63,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-63.png"
},
{
"name": "Edward J. Derwinski",
"position": "Secretary of Veterans Affairs",
"position_num": 15,
"id": 95,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": true,
"image": "/image/us-cabinet-95.png"
},
{
"name": "Richard G. Darman",
"position": "Director of the Office of Management and Budget",
"position_num": 1,
"id": 96,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "George Bush",
"inner": false,
"image": "/image/us-cabinet-96.png"
},
{
"name": "Carla A. Hills",
"position": "United States Trade Representative",
"position_num": 2,
"id": 97,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "George Bush",
"inner": false,
"image": "/image/us-cabinet-97.png"
},
{
"name": "George H. W. Bush",
"position": "Vice President",
"position_num": 1,
"id": 100,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-100.png"
},
{
"name": "Alexander M. Haig Jr.",
"position": "Secretary of State",
"position_num": 2,
"id": 101,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-101.png"
},
{
"name": "Donald T. Regan",
"position": "Secretary of the Treasury",
"position_num": 3,
"id": 102,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-102.png"
},
{
"name": "Caspar W. Weinberger",
"position": "Secretary of Defense",
"position_num": 4,
"id": 103,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-103.png"
},
{
"name": "William French Smith",
"position": "Attorney General",
"position_num": 5,
"id": 104,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-104.png"
},
{
"name": "James G. Watt",
"position": "Secretary of the Interior",
"position_num": 6,
"id": 105,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-105.png"
},
{
"name": "John Block",
"position": "Secretary of Agriculture",
"position_num": 7,
"id": 63,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-63.png"
},
{
"name": "Malcolm Baldrige",
"position": "Secretary of Commerce",
"position_num": 8,
"id": 118,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-118.png"
},
{
"name": "Raymond J. Donovan",
"position": "Secretary of Labor",
"position_num": 9,
"id": 106,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-106.png"
},
{
"name": "Richard S. Schweiker",
"position": "Secretary of Health and Human Services",
"position_num": 10,
"id": 107,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-107.png"
},
{
"name": "Samuel R. Pierce Jr.",
"position": "Secretary of Housing and Urban Development",
"position_num": 11,
"id": 108,
"gender": "male",
"race": "non-white",
"cat": "male_non-white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-108.png"
},
{
"name": "Drew Lewis",
"position": "Secretary of Transportation",
"position_num": 12,
"id": 109,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-109.png"
},
{
"name": "James B. Edwards",
"position": "Secretary of Energy",
"position_num": 13,
"id": 110,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-110.png"
},
{
"name": "Terrel H. Bell",
"position": "Secretary of Education",
"position_num": 14,
"id": 63,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": true,
"image": "/image/us-cabinet-63.png"
},
{
"name": "David A. Stockman",
"position": "Director of the Office of Management and Budget",
"position_num": 1,
"id": 111,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": false,
"image": "/image/us-cabinet-111.png"
},
{
"name": "Bill Brock",
"position": "United States Trade Representative",
"position_num": 2,
"id": 112,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": false,
"image": "/image/us-cabinet-112.png"
},
{
"name": "Jeane J. Kirkpatrick",
"position": "United Nations Ambassador",
"position_num": 3,
"id": 113,
"gender": "female",
"race": "white",
"cat": "female_white",
"president": "Ronald Reagan",
"inner": false,
"image": "/image/us-cabinet-113.png"
},
{
"name": "William J. Casey",
"position": "Director of Central Intelligence",
"position_num": 4,
"id": 63,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": false,
"image": "/image/us-cabinet-63.png"
},
{
"name": "Edwin Meese III",
"position": "Counselor to the President",
"position_num": 5,
"id": 119,
"gender": "male",
"race": "white",
"cat": "male_white",
"president": "Ronald Reagan",
"inner": false,
"image": "/image/us-cabinet-119.png"
}
],
"metadata": {
"rect": {
"discreteBandSize": 35
}
}
}
{
"$schema": "../cicero.json",
"name": "us-cabinet-entire-desktop",
"description": "This is a Cicero specification for 'US Cabinet (Entire)' visualization from mobile to desktop.",
"metadata": {
"condition": "large"
},
"transformations": [
{
"description": "Resize the chart; with proportionate rescaling.",
"specifier": {
"role": "view"
},
"action": "modify",
"option": {
"width": 1050,
"height": 480
}
},
{
"description": "Transpose axis",
"specifier": {
"role": "view"
},
"action": "transpose"
},
{
"description": "Serialize vertical axis labels",
"specifier": {
"role": "vAxis.label",
"datatype": "nominal"
},
"action": "transpose",
"option": {
"serial": true
}
},
{
"description": "Reposition the horiozontal axisl labels",
"specifier": {
"role": "axis",
"datatype": "nominal"
},
"action": "modify",
"option": {
"orient": "left",
"offset": null
}
},
{
"description": "Unfix/internalize tooltip position",
"specifier": {
"role": "tooltip"
},
"action": "reposition",
"option": {
"external": false,
"fixed": false,
"position": null
}
},
{
"comment": "Replace the on-axis labels",
"specifier": {
"role": "hAxis.label"
},
"action": "modify",
"option": {
"expression": "datum.value"
}
},
{
"description": "Internalize a title element as an annotation",
"specifier": {
"role": "title",
"text": "CABINET MEMBERS LISTED IN ORDER OF PRESIDENTIAL SUCCESSION"
},
"action": "replace",
"option": {
"to": {
"role": "annotation",
"width": 460,
"x": 400,
"y": 43,
"dx": "-50%"
}
}
},
{
"comment": "Reposition and resize a non-data annotations",
"specifier": {
"role": "annotation",
"text": "INNER CABINET"
},
"action": "modify",
"option": {
"width": 120,
"x": 160,
"y": 0,
"dx": "-50%",
"fontSize": 13,
"textAlign": "center"
}
},
{
"comment": "Reposition and resize a non-data annotations",
"specifier": {
"role": "annotation",
"text": "NOT IN PRESIDENTIAL SUCCESSION"
},
"action": "modify",
"option": {
"width": 300,
"x": 670,
"y": 0,
"dx": "-50%",
"textAlign": "center"
}
},
{
"comment": "Reposition and resizing two emphasis",
"specifier": {
"role": "emphasis",
"id": "range_1"
},
"action": "modify",
"option": {
"x": 160,
"y": 15,
"dx": "-50%",
"rotate": {
"by": 90
}
}
},
{
"description": "Duplicate a range mark",
"specifier": {
"role": "emphasis",
"id": "range_1"
},
"action": "duplicate",
// duplicate "option": {
// at a specific position "to": {
"x": 670,
"y": 15
}
}
},
{
"description": "Add an arrow mark",
"specifier": {
"role": "emphasis"
},
"action": "add",
"option": {
"width": 13,
"height": 13,
"x": 635,
"y": 40,
"dx": "-50%",
"id": "arrow",
"mark": {
"icon": "arrow-right",
"fill": "#999999"
}
}
}
]
}