Template:Graph:Most Expensive Paintings

From blackwiki
Jump to navigation Jump to search

<graph mode="interactive" title="Sale of the Most Expensive Paintings"> {

 "version": 2, "width": 950, "height": 400,
     // Each Data value has the following attributes:
     // date_sold, price_adj, year_painted, period (binned p1, p2, p3, p4), artist (artist name),
     // author (binned Van Gogh, Picasso, Warhol, other), title, ratio (approximate image ratio), img
     // Automatically generated inflation value depends on a reliably sourced input, both of cost, as well as a definite year the cost figure is relevant to. It is not safe to assume this to be the publication date or the year the event happened. Manually calculating inflation, or entering the wrong year the original figure was actually written to describe, will result in an incorrect calculation of inflation.
 "data": [
   {
     "name": "table",
     "format": {"type": "json", "parse": {"date_sold": "date"} },
     "values": [
       {"date_sold": "April 18, 1985", "price_adj": 25, "year_painted": 1462, "period": "p1", "artist": "Mantegna", "author": "other", "title": "Adoration of the Magi", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "March 30, 1987", "price_adj": 89.3, "year_painted": 1888, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Vase with Fifteen Sunflowers", "ratio": {"x": 1, "y": 1.26}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Vincent_Willem_van_Gogh_127.jpg/190px-Vincent_Willem_van_Gogh_127.jpg"},
       {"date_sold": "November 11, 1987", "price_adj": 121.3, "year_painted": 1889, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Irises", "ratio": {"x": 1.31, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Irises-Vincent_van_Gogh.jpg/190px-Irises-Vincent_van_Gogh.jpg"},
       {"date_sold": "November 28, 1988", "price_adj": 83.3, "year_painted": 1905, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Acrobate et jeune arlequin", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 9, 1989", "price_adj": 98.7, "year_painted": 1901, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": " Yo, Picasso", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 31, 1989", "price_adj": 72.6, "year_painted": 1537, "period": "p1", "artist": "Pontormo", "author": "other", "title": "Portrait of a Halberdier", "ratio": {"x": 1, "y": 1.316}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/1/13/Pontormo_%28Jacopo_Carucci%29_%28Italian%2C_Florentine%29_-_Portrait_of_a_Halberdier_%28Francesco_Guardi%3F%29_-_Google_Art_Project.jpg/190px-Pontormo_%28Jacopo_Carucci%29_%28Italian%2C_Florentine%29_-_Portrait_of_a_Halberdier_%28Francesco_Guardi%3F%29_-_Google_Art_Project.jpg"},
       {"date_sold": "August 1, 1989", "price_adj": 123.8, "year_painted": 1889, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Portrait of Joseph Roulin", "ratio": {"x": 1, "y": 1.184}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Vincent_van_Gogh_-_Portrait_of_Joseph_Roulin.jpg/190px-Vincent_van_Gogh_-_Portrait_of_Joseph_Roulin.jpg"},
       {"date_sold": "November 27, 1989", "price_adj": 83.9, "year_painted": 1904, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Au Lapin Agile", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 30, 1989", "price_adj": 101.7, "year_painted": 1905, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Les Noces de Pierrette", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 15, 1990", "price_adj": 161.4, "year_painted": 1890, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Portrait of Dr. Gachet", "ratio": {"x": 1, "y": 1.232}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Portrait_of_Dr._Gachet.jpg/190px-Portrait_of_Dr._Gachet.jpg"},
       {"date_sold": "May 17, 1990", "price_adj": 152.8, "year_painted": 1876, "period": "p2", "artist": "Pierre-Auguste Renoir", "author": "other", "title": "Bal du moulin de la Galette", "ratio": {"x": 1.338, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Pierre-Auguste_Renoir%2C_Le_Moulin_de_la_Galette.jpg/190px-Pierre-Auguste_Renoir%2C_Le_Moulin_de_la_Galette.jpg"},
       {"date_sold": "May 1993", "price_adj": 100.9, "year_painted": 1889, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "A Wheatfield with Cypresses", "ratio": {"x": 1.258, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Vincent_van_Gogh_-_Wheat_Field_with_Cypresses_%28National_Gallery_version%29.jpg/190px-Vincent_van_Gogh_-_Wheat_Field_with_Cypresses_%28National_Gallery_version%29.jpg"},
       {"date_sold": "1997", "price_adj": 75.7, "year_painted": 1890, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Peasant Woman Against a Background of Wheat", "ratio": {"x": 1, "y": 1.268}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Vincent_Willem_van_Gogh_097.jpg/190px-Vincent_Willem_van_Gogh_097.jpg"},
       {"date_sold": "November 19, 1998", "price_adj": 112.2, "year_painted": 1889, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Portrait de l'artiste sans barbe", "ratio": {"x": 1, "y": 1.253}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Vincent_Willem_van_Gogh_102.jpg/190px-Vincent_Willem_van_Gogh_102.jpg"},
       {"date_sold": "May 10, 1999", "price_adj": 92.9, "year_painted": 1894, "period": "p2", "artist": "Paul Cézanne", "author": "other", "title": "Rideau, Cruchon et Compotier", "ratio": {"x": 1.429, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Rideau%2C_Cruchon_et_Compotier%2C_par_Paul_C%C3%A9zanne.jpg/190px-Rideau%2C_Cruchon_et_Compotier%2C_par_Paul_C%C3%A9zanne.jpg"},
       {"date_sold": "November 10, 1999", "price_adj": 76, "year_painted": 1938, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Femme assise dans un jardin", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 8, 2000", "price_adj": 81.7, "year_painted": 1902, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Femme aux Bras Croisés", "ratio": {"x": 1, "y": 1.389}, "img": "wikirawupload:"},
       {"date_sold": "July 10, 2002", "price_adj": 109, "year_painted": 1611, "period": "p1", "artist": "Peter Paul Rubens", "author": "other", "title": "Massacre of the Innocents", "ratio": {"x": 1.348, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/0_Le_Massacre_des_Innocents_d%27apr%C3%A8s_P.P._Rubens_-_Mus%C3%A9es_royaux_des_beaux-arts_de_Belgique_%282%29.JPG/190px-0_Le_Massacre_des_Innocents_d%27apr%C3%A8s_P.P._Rubens_-_Mus%C3%A9es_royaux_des_beaux-arts_de_Belgique_%282%29.JPG"},
       {"date_sold": "November 2003", "price_adj": 97.3, "year_painted": 1533, "period": "p1", "artist": "Titian", "author": "other", "title": "Portrait of Alfonso d'Avalos, Marquis of Vasto, in Armor with a Page", "ratio": {"x": 1, "y": 1.284}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Titian_-_Marchese_del_Vasto.jpg/190px-Titian_-_Marchese_del_Vasto.jpg"},
       {"date_sold": "May 5, 2004", "price_adj": 141, "year_painted": 1905, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Garçon à la pipe", "ratio": {"x": 1, "y": 1.242}, "img": "wikirawupload:"},
       {"date_sold": "May 3, 2006", "price_adj": 120.8, "year_painted": 1941, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Dora Maar au Chat", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "June 18, 2006", "price_adj": 171.2, "year_painted": 1907, "period": "p3", "artist": "Gustav Klimt", "author": "other", "title": "Portrait of Adele Bloch-Bauer I", "ratio": {"x": 1, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Gustav_Klimt_046.jpg/190px-Gustav_Klimt_046.jpg"},
       {"date_sold": "October 12, 2006", "price_adj": 80.5, "year_painted": 1955, "period": "p4", "artist": "Willem de Kooning", "author": "other", "title": "Police Gazette", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "October 12, 2006", "price_adj": 101.5, "year_painted": 1959, "period": "p4", "artist": "Jasper Johns", "author": "other", "title": "False Start", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 2, 2006", "price_adj": 177.6, "year_painted": 1948, "period": "p4", "artist": "Jackson Pollock", "author": "other", "title": "No. 5, 1948", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 18, 2006", "price_adj": 174.4, "year_painted": 1953, "period": "p4", "artist": "Willem de Kooning", "author": "other", "title": "Woman III", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "April 12, 2007", "price_adj": 83.8, "year_painted": 1875, "period": "p2", "artist": "Thomas Eakins", "author": "other", "title": "The Gross Clinic", "ratio": {"x": 1, "y": 1.242}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Thomas_Eakins%2C_American_-_Portrait_of_Dr._Samuel_D._Gross_%28The_Gross_Clinic%29_-_Google_Art_Project.jpg/190px-Thomas_Eakins%2C_American_-_Portrait_of_Dr._Samuel_D._Gross_%28The_Gross_Clinic%29_-_Google_Art_Project.jpg"},
       {"date_sold": "May 15, 2007", "price_adj": 89.8, "year_painted": 1950, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "White Center (Yellow, Pink and Lavender on Rose)", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 16, 2007", "price_adj": 88.4, "year_painted": 1963, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": "Green Car Crash (Green Burning Car I)", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 20, 2007", "price_adj": 98.6, "year_painted": 1964, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": " Turquoise Marilyn", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 14, 2008", "price_adj": 102.5, "year_painted": 1976, "period": "p4", "artist": "Francis Bacon", "author": "other", "title": "Triptych, 1976", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "June 2008", "price_adj": 100.9, "year_painted": 1892, "period": "p2", "artist": "Paul Gauguin", "author": "other", "title": "Te Fare (La maison)", "ratio": {"x": 0, "y": 0}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/b/b7/Te_Fare_%28La_maison%29_Paul_Gauguin_1892.jpg/190px-Te_Fare_%28La_maison%29_Paul_Gauguin_1892.jpg"},
       {"date_sold": "June 24, 2008", "price_adj": 95.7, "year_painted": 1919, "period": "p3", "artist": "Claude Monet", "author": "other", "title": "Le Bassin aux Nymphéas", "ratio": {"x": 2.043, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Le_bassin_aux_nymph%C3%A9as_-_Claude_Monet.jpg/190px-Le_bassin_aux_nymph%C3%A9as_-_Claude_Monet.jpg"},
       {"date_sold": "October 2008", "price_adj": 118.7, "year_painted": 1963, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": "Eight Elvises", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "February 1, 2009", "price_adj": 84.2, "year_painted": 1559, "period": "p1", "artist": "Titian", "author": "other", "title": "Diana and Actaeon", "ratio": {"x": 1.092, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Titian_-_Diana_and_Actaeon_-_1556-1559.jpg/190px-Titian_-_Diana_and_Actaeon_-_1556-1559.jpg"},
       {"date_sold": "March 2010", "price_adj": 129, "year_painted": 1954, "period": "p4", "artist": "Jasper Johns", "author": "other", "title": "Flag", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 4, 2010", "price_adj": 124.8, "year_painted": 1932, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Nude, Green Leaves and Bust", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 2, 2010", "price_adj": 80.9, "year_painted": 1917, "period": "p3", "artist": "Amedeo Modigliani", "author": "other", "title": "Nude Sitting on a Divan ('La Belle Romaine')", "ratio": {"x": 1, "y": 1.579}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/c/cc/Amedeo_Modigliani_063.jpg/190px-Amedeo_Modigliani_063.jpg"},
       {"date_sold": "November 8, 2010", "price_adj": 74.3, "year_painted": 1962, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": "Men in Her Life", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "April 2011", "price_adj": 294, "year_painted": 1893, "period": "p2", "artist": "Paul Cézanne", "author": "other", "title": "The Card Players", "ratio": {"x": 1.418, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Les_Joueurs_de_cartes%2C_par_Paul_C%C3%A9zanne%2C_collection_Al-Thani%2C_Yorck.jpg/190px-Les_Joueurs_de_cartes%2C_par_Paul_C%C3%A9zanne%2C_collection_Al-Thani%2C_Yorck.jpg"},
       {"date_sold": "May 22, 2011", "price_adj": 74.4, "year_painted": 1946, "period": "p4", "artist": "Qi Baishi", "author": "other", "title": "Eagle Standing on Pine Tree", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "June 4, 2011", "price_adj": 70.6, "year_painted": 1350, "period": "p1", "artist": "Wang Meng", "author": "other", "title": "Zhichuan Resettlement", "ratio": {"x": 1, "y": 2.152}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/ZhichuanResettlement.jpg/190px-ZhichuanResettlement.jpg"},
       {"date_sold": "July 12, 2011", "price_adj": 85, "year_painted": 1526, "period": "p1", "artist": "Hans Holbein", "author": "other", "title": "Darmstadt Madonna", "ratio": {"x": 1, "y": 1.416}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Darmstadtmadonna.jpg/190px-Darmstadtmadonna.jpg"},
       {"date_sold": "2012", "price_adj": 131, "year_painted": 1917, "period": "p3", "artist": "Amedeo Modigliani", "author": "other", "title": "Reclining Nude With Blue Cushion", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "March 2, 2012", "price_adj": 79.8, "year_painted": 1559, "period": "p1", "artist": "Titian", "author": "other", "title": "Diana and Callisto", "ratio": {"x": 1.086, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/TitianDianaCallistoEdinburgh.jpg/190px-TitianDianaCallistoEdinburgh.jpg"},
       {"date_sold": "May 2, 2012", "price_adj": 133.6, "year_painted": 1895, "period": "p2", "artist": "Edvard Munch", "author": "other", "title": "The Scream", "ratio": {"x": 1, "y": 1.332}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/The_Scream_Pastel.jpg/190px-The_Scream_Pastel.jpg"},
       {"date_sold": "May 8, 2012", "price_adj": 96.8, "year_painted": 1961, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "Orange, Red, Yellow", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 13, 2012", "price_adj": 83.7, "year_painted": 1954, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "No 1 (Royal Red and Blue)", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "2013", "price_adj": 202, "year_painted": 1907, "period": "p3", "artist": "Gustav Klimt", "author": "other", "title": "Wasserschlangen II", "ratio": {"x": 0, "y": 0}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Klimt_-_Wasserschlangen_II_%28Freundinnen%29_-_1904.jpeg/190px-Klimt_-_Wasserschlangen_II_%28Freundinnen%29_-_1904.jpeg"},
       {"date_sold": "2013", "price_adj": 132, "year_painted": 1893, "period": "p2", "artist": "Paul Gauguin", "author": "other", "title": "Otahi", "ratio": {"x": 0, "y": 0}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Paul_Gauguin_093.jpg/190px-Paul_Gauguin_093.jpg"},
       {"date_sold": "2013", "price_adj": 110, "year_painted": 1904, "period": "p3", "artist": "Paul Cézanne", "author": "other", "title": "La Montagne Sainte-Victoire vue du bosquet du Château Noir", "ratio": {"x": 1.275, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/La_Montagne_Sainte-Victoire_vue_du_bosquet_du_Ch%C3%A2teau_Noir%2C_par_Paul_C%C3%A9zanne.jpg/190px-La_Montagne_Sainte-Victoire_vue_du_bosquet_du_Ch%C3%A2teau_Noir%2C_par_Paul_C%C3%A9zanne.jpg"},
       {"date_sold": "March 26, 2013", "price_adj": 170.1, "year_painted": 1932, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Le Rêve", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "October 4, 2013", "price_adj": 116, "year_painted": 1968, "period": "p4", "artist": "Barnett Newman", "author": "other", "title": "Anna's Light", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 12, 2013", "price_adj": 156.3, "year_painted": 1969, "period": "p4", "artist": "Francis Bacon", "author": "other", "title": "Three Studies of Lucian Freud", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 13, 2013", "price_adj": 115.7, "year_painted": 1963, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": "Silver Car Crash (Double Disaster)", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "February 13, 2014", "price_adj": 76, "year_painted": 1966, "period": "p4", "artist": "Francis Bacon", "author": "other", "title": "Portrait of George Dyer Talking", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 13, 2014", "price_adj": 71.5, "year_painted": 1952, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "Untitled", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 13, 2014", "price_adj": 90.9, "year_painted": 1961, "period": "p4", "artist": "Barnett Newman", "author": "other", "title": "Black Fire I", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 13, 2014", "price_adj": 87.3, "year_painted": 1984, "period": "p4", "artist": "Francis Bacon", "author": "other", "title": "Three Studies for a Portrait of John Edwards", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "August 2014", "price_adj": 201, "year_painted": 1951, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "No. 6 (Violet, Green and Red)", "ratio": {"x": 0, "y": 0} },        
       {"date_sold": "September 2014", "price_adj": 227, "year_painted": 1892, "period": "p2", "artist": "Paul Gauguin", "author": "other", "title": "Nafea Faa Ipoipo (When Will You Marry?)", "ratio": {"x": 1, "y": 1.332}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Paul_Gauguin%2C_Nafea_Faa_Ipoipo%3F_%28When_Will_You_Marry%3F%29_1892%2C_oil_on_canvas%2C_101_x_77_cm.jpg/190px-Paul_Gauguin%2C_Nafea_Faa_Ipoipo%3F_%28When_Will_You_Marry%3F%29_1892%2C_oil_on_canvas%2C_101_x_77_cm.jpg"},
       {"date_sold": "November 5, 2014", "price_adj": 70.3, "year_painted": 1881, "period": "p2", "artist": "Édouard Manet", "author": "other", "title": "Spring (Le Printemps)", "ratio": {"x": 1, "y": 1.447}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/%C3%89douard_Manet_-_Jeanne_%28Spring%29.jpg/190px-%C3%89douard_Manet_-_Jeanne_%28Spring%29.jpg"},
       {"date_sold": "November 12, 2014", "price_adj": 88.5, "year_painted": 1963, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": "Triple Elvis", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 12, 2014", "price_adj": 75.2, "year_painted": 1966, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": "Four Marlons", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 12, 2014", "price_adj": 75.2, "year_painted": 1970, "period": "p4", "artist": "Cy Twombly", "author": "other", "title": "Untitled", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 5, 2015", "price_adj": 71.5, "year_painted": 1888, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "L’Allée des Alyscamps", "ratio": {"x": 1, "y": 1.311}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Van_Gogh_-_Les_Alyscamps%2C_Allee_in_Arles1.jpeg/190px-Van_Gogh_-_Les_Alyscamps%2C_Allee_in_Arles1.jpeg"},
       {"date_sold": "May 11, 2015", "price_adj": 72.7, "year_painted": 1938, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Buste de femme (Femme à la résille)", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 11, 2015", "price_adj": 193.5, "year_painted": 1955, "period": "p4", "artist": "Pablo Picasso", "author": "Picasso", "title": "Les Femmes d'Alger ('Version O')", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 13, 2015", "price_adj": 88.4, "year_painted": 1961, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "No. 10", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "September, 2015", "price_adj": 323.6, "year_painted": 1955, "period": "p4", "artist": "Willem de Kooning", "author": "other", "title": "Interchange", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "September, 2015", "price_adj": 215.7, "year_painted": 1948, "period": "p4", "artist": "Jackson Pollock", "author": "other", "title": "Number 17A", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "September 2015", "price_adj": 194, "year_painted": 1634, "period": "p1", "artist": "Rembrandt", "author": "other", "title": "Pendant portraits of Maerten Soolmans and Oopjen Coppit", "ratio": {"x": 1.397, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Pendant_portraits_of_Maerten_Soolmans_and_Oopjen_Coppit.jpeg/190px-Pendant_portraits_of_Maerten_Soolmans_and_Oopjen_Coppit.jpeg"},
       {"date_sold": "November 5, 2015", "price_adj": 72.8, "year_painted": 1901, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "La Gommeuse", "ratio": {"x": 1, "y": 1.532}, "img": "wikirawupload:"},
       {"date_sold": "November 9, 2015", "price_adj": 102.9, "year_painted": 1964, "period": "p4", "artist": "Roy Lichtenstein", "author": "other", "title": "Nurse", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 9, 2015", "price_adj": 183.8, "year_painted": 1917, "period": "p3", "artist": "Amedeo Modigliani", "author": "other", "title": "Nu Couché", "ratio": {"x": 1.583, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Modigliani_-_Nu_couch%C3%A9.jpg/190px-Modigliani_-_Nu_couch%C3%A9.jpg"},
       {"date_sold": "November 11, 2015", "price_adj": 76.1, "year_painted": 1968, "period": "p4", "artist": "Cy Twombly", "author": "other", "title": "Untitled (New York City)", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "2016", "price_adj": 150.0, "year_painted": 1912, "period": "p3", "artist": "Gustav Klimt", "author": "other", "title": "Adele Bloch-Bauer II", "ratio": {"x": 1, "y": 1.643}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Gustav_Klimt_047.jpg/190px-Gustav_Klimt_047.jpg"},
       {"date_sold": "November 15, 2016", "price_adj": 66.3, "year_painted": 1977, "period": "p4", "artist": "Willem de Kooning", "author": "other", "title": "Untitled XXV", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 16, 2016", "price_adj": 81.4, "year_painted": 1891, "period": "p2", "artist": "Claude Monet", "author": "other", "title": "Grainstack in the Sunlight", "ratio": {"x": 1.270, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/2/2b/Monet_Grainstack_in_the_Sunlight_1891.jpg/190px-Monet_Grainstack_in_the_Sunlight_1891.jpg"},
       {"date_sold": "January 2016", "price_adj": 165.0, "year_painted": 1962, "period": "p4", "artist": "Roy Lichtenstein", "author": "other", "title": "Masterpiece", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 18, 2017", "price_adj": 110.5, "year_painted": 1982, "period": "p4", "artist": "Jean-Michel Basquiat", "author": "other", "title": "Untitled", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 13, 2017", "price_adj": 70.1, "year_painted": 1913, "period": "p3", "artist": "Fernand Léger", "author": "other", "title": "Contraste de formes", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 13, 2017", "price_adj": 81.3, "year_painted": 1889, "period": "p2", "artist": "Vincent van Gogh", "author": "other", "title": "Laboureur dans un champ", "ratio": {"x": 1.301, "y": 1}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Van_Gogh_-_Acker_mit_pfl%C3%BCgenden_Bauern.jpeg/190px-Van_Gogh_-_Acker_mit_pfl%C3%BCgenden_Bauern.jpeg"},
       {"date_sold": "November 15, 2017", "price_adj": 469.7, "year_painted": 1500, "period": "p1", "artist": "Attributed to Leonardo da Vinci", "author": "other", "title": "Salvator Mundi", "ratio": {"x": 1, "y": 1.472}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Leonardo_da_Vinci%2C_Salvator_Mundi%2C_c.1500%2C_oil_on_walnut%2C_45.4_%C3%97_65.6_cm.jpg/190px-Leonardo_da_Vinci%2C_Salvator_Mundi%2C_c.1500%2C_oil_on_walnut%2C_45.4_%C3%97_65.6_cm.jpg"},
       {"date_sold": "December 17, 2017", "price_adj": 146.9, "year_painted": 1925, "period": "p3", "artist": "Qi Baishi", "author": "other", "title": "Twelve Landscape Screens", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 8, 2018", "price_adj": 117.1, "year_painted": 1905, "period": "p3", "artist": "Pablo Picasso", "author": "other", "title": "Young Girl with a Flower Basket", "ratio": {"x": 1, "y": 2.35}, "img": "wikirawupload:"},
       {"date_sold": "May 8, 2018", "price_adj": 86.2, "year_painted": 1917, "period": "p3", "artist": "Claude Monet", "author": "other", "title": "Nymphéas en fleur", "ratio": {"x": 0, "y": 0}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Claude_Monet_-_Nympheas_en_fleur.jpg/190px-Claude_Monet_-_Nympheas_en_fleur.jpg"},
       {"date_sold": "May 8, 2018", "price_adj": 82.3, "year_painted": 1923, "period": "p3", "artist": "Henri Matisse", "author": "other", "title": "Odalisque couchée aux magnolias", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 15, 2018", "price_adj": 160.1, "year_painted": 1917, "period": "p3", "artist": "Amedeo Modigliani", "author": "other", "title": "Nu couché (sur le côté gauche)", "ratio": {"x": 0, "y": 0}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Amedeo_Modigliani_014.jpg/190px-Amedeo_Modigliani_014.jpg"},
       {"date_sold": "May 15, 2018", "price_adj": 87.4, "year_painted": 1916, "period": "p3", "artist": "Kazimir Malevich", "author": "other", "title": "Suprematist Composition", "ratio": {"x": 0, "y": 0}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/1/13/Suprematist_Composition_-_Kazimir_Malevich.jpg/190px-Suprematist_Composition_-_Kazimir_Malevich.jpg"},
       {"date_sold": "November 13, 2018", "price_adj": 93.6, "year_painted": 1929, "period": "p3", "artist": "Edward Hopper", "author": "other", "title": "Chop Suey", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 13, 2018", "price_adj": 70.2, "year_painted": 1955, "period": "p4", "artist": "Willem de Kooning", "author": "other", "title": "Woman as Landscape", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "November 13, 2018", "price_adj": 91.9, "year_painted": 1972, "period": "p4", "artist": "David Hockney", "author": "other", "title": "Portrait of an Artist (Pool with Two Figures)", "ratio": {"x": 0, "y": 0} },
       {"date_sold": "May 14, 2019", "price_adj": 110.7, "year_painted": 1890, "period": "p2", "artist": "Claude Monet", "author": "other", "title": "Meules", "ratio": {"x": 0, "y": 0}, "img": "wikirawupload:https://upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Claude_Monet_-_Meules_%28W_1273%29.jpg/190px-Claude_Monet_-_Meules_%28W_1273%29.jpg"},
   ]
   },
   {
     "name": "date_min_max",
     "format": {"type": "json", "parse": {"min_max": "date"} },
     "values": [
       {"min_max": "1985"},
       {"min_max": "2020"}
     ]
   },
   {
     // Specify the names (corresponding to artist in table) that should appear in the artist legend.
     "name": "popular_artists",
     "values": [
       {"name": "Vincent van Gogh"}, {"name": "Pablo Picasso"},
       {"name": "Andy Warhol"}, {"name": "Mark Rothko"}
     ]
   },
   {
     // Filter the reference point from the dataset
     // This point is not included in the wikipedia table, but corresponds to data from the 'Background' section
     "name": "old_record",
     "source": "table",
     "transform": [{
       "type": "filter",
       "test": "datum.title == 'Adoration of the Magi'"
     }]
   },
   {
     // Specify the values corresponding to the period attribute in the table.
     "name": "periods",
     "values": ["p1", "p2", "p3", "p4"]
   },
   {
     // Helper dataset for drawing images. Filtering this dataset based on the availability of an image ensures
     // that the image is drawn correctly and does not throw a 404 error. See transforms of this dataset for
     // more information on how it is used.
     "name": "drawImage",
     "values": [0]
   }
 ],
 "signals": [
   {
     // Tooltip signal: extract the data for the hovered point and provide an empty value.
     "name": "tooltip",
     "init": {"title": "Sale Date for the Most Expensive Paintings", "ratio": {"x": 0, "y":0} },
     "streams": [
       {"type": "@points:mouseover", "expr": "datum"},
       {"type": "@points:mouseout", "expr": "{title: 'Sale Date for the Most Expensive Paintings', ratio:{x: 0, y:0} }"}
     ]
   },
   {
     // Define the selected artist (background select for none, point or legend for artist)
     "name": "artist",
     "init": "",
     "streams": [
       {"type": "click", "expr": ""},
       {"type": "symbol:click", "expr": "datum.artist"},
       {"type": "@artist_legend:click", "expr": "datum.name"}
     ]
   },
   {
     // Define the selected period (background select for none or legend data)
     "name": "period",
     "init": "",
     "streams": [
       {"type": "click", "expr": ""},
       {"type": "@period_legend_text:click", "expr": "datum.data"}
     ]
   },
   {
     // Scale the tooltip image ratio to the desired size
     "name": "image_size",
     "init": {"width":0, "height":0},
     "streams": [
       {"type": "tooltip", "expr": "{width:tooltip.ratio.x * 100, height:tooltip.ratio.y * 100}"}
     ]
   },
   {
     // Determine the x position of the tooltip
     "name": "xPosition",
     "init": {},
     "streams": [
       {"type": "tooltip", "expr": "tooltip.date_sold",  "scale": {"name": "scale_date"} }
     ]
   },
   {
     // Determine the y position of the tooltip
     "name": "yPosition",
     "init": {},
     "streams": [
       {"type": "tooltip", "expr": "tooltip.price_adj",  "scale": {"name": "scale_price"} }
     ]
   }
 ],
 "scales": [
   {
     "name": "scale_date",
     "type": "time",
     "domain": {"data": "date_min_max", "field": "min_max"},
     "range": [0, 800],
     "nice": "year"
   },
   {
     "name": "scale_price",
     "type": "linear",
     "domain": {"data": "table", "field": "price_adj"},
     "range": "height",
     "nice": true
   },
   {
     "name": "scale_period_colour",
     "type": "ordinal",
     "domain": {"data": "periods", "field": "data"},
     "range": ["#a1dab4", "#41b6c4", "#2c7fb8", "#253494"]
   },
   {
     "name": "scale_period_text",
     "type": "ordinal",
     "domain": {"data": "periods", "field": "data"},
     "range": ["before 1700", "1851–1900", "1901–1945", "after 1945"]
   },
   {
     // Scale to position the labels for the period legend.
     "name": "scale_period_position",
     "type": "ordinal",
     "domain": {"data": "periods", "field": "data"},
     "range": [30, 90]
   },
   {
     // Scale to position the labels for the artist legend.
     "name": "scale_artist_position",
     "type": "ordinal",
     "domain": {"data": "popular_artists", "field": "name"},
     "range": [30, 90]
   }
 ],
 "axes": [
   {
     "type": "x",
     "scale": "scale_date",
     "title": "Date of sale",
     "tickSizeEnd": 0,
     "subdivide": 4
   },
   {
     "type": "y",
     "scale": "scale_price",
     "title": "Adjusted price (equivalent to US$ millions in 2019)",
     "subdivide": 4,
     "grid": true,
     "layer": "back"
   }
 ],
 "marks": [
   {
     // The 'symbol' mark specifies the points visible in the scatterplot.
     "name": "points",
     "type": "symbol",
     "from": {
       "data": "table",
       "transform": [{"type": "sort", "by": "-year_painted"}]
     },
     "properties": {
       "enter": {
         "x": {"scale": "scale_date", "field": "date_sold"},
         "y": {"scale": "scale_price", "field": "price_adj"},
         "fill": {"scale": "scale_period_colour", "field": "period"},
         "size": {"value": 150},
         "shape": [
           {"test": "datum.img == null", "value": "square"},
           {"value": "circle"}
         ]
       },
       "update": {
         // If the data point corresponds to the selected artist, selected period, or if nothing is selected,
         // it should be completely visible. Otherwise, it should become transparent.
         "opacity": [
           {"test": "datum.artist == artist", "value": 1},
           {"test": "datum.period == period", "value": 1},
           {"test": "period ==  && artist == ", "value": 1},
           {"value": 0.25}
         ],
         "stroke": {"value": "white"},
         "strokeWidth": {"value": 1}
       },
       "hover": {
         "stroke": {"value": "black"},
         "strokeWidth": {"value": 2}
       }
     }
   },
   {
     // The tooltip consists of two lines of text 'No image available' and 'non-free content'.
     "name": "tooltip",
     "from": {
       // Only draw the tooltip when there is no image available (and mousing over a point).
       // If there is an image associated with the tooltip point or the default title is set, 
       // the filter will remove all data points and this group will not be drawn.
       "data": "drawImage",
       "transform": [{"type": "filter", "test": "tooltip.img == null && tooltip.title != 'Sale Date for the Most Expensive Paintings'"}]
     },
     "type": "group",
     "properties": {
       // Specify properties of the entire tooltip (background, fill, position, etc.)
       "update": {
         "width": {"value": 115},
         "height": {"value": 33},
         "opacity": {"value": 0.75},
         "fill": [
           {"test": "tooltip.title == 'Adoration of the Magi'", "value": "white"},
           {"value": "black"}
         ],
         // Specify the xPosition of the text tooltip based on the point position to prevent the tooltip from 
         // being drawn outside the visible region (e.g. draw it to the left if the point is near the right edge).
         "x": [
           {"test": "xPosition < 550", "scale": "scale_date", "signal": "tooltip.date_sold", "offset": 7},
           {"scale": "scale_date", "signal": "tooltip.date_sold", "offset": -122}
         ],
         // Specify the yPosition of the text tooltip based on the point position to prevent the tooltip from 
         // being drawn outside the visible region (e.g. draw it below the point if the point is near the top).
         "y": [
           {"test": "yPosition > 150", "scale": "scale_price", "signal": "tooltip.price_adj", "offset": -40},
           {"scale": "scale_price", "signal": "tooltip.price_adj", "offset": -60}
         ]
       }
     },
     "marks": [
       {
         // Text: 'No image available'
         "type": "text",
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "baseline": {"value": "top"},
             "text": {"value": "No image available"},
             "fill": {"value": "white"},
             "x": {"value": 9},
             "y": {"value": 3},
             "opacity": {"value": 1}
           }
         }
       },
       {
         // Text: 'non-free content'
         "type": "text",
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "baseline": {"value": "top"},
             "text": {"value": "non-free content"},
             "fill": {"value": "lightgrey"},
             "x": {"value": 9},
             "y": {"value": 17},
             "opacity": {"value": 1}
           }
         }
       }
     ]
   },
   {
     // Draw a white background behind the legends to hide the gridlines.
     "name": "legend_background",
     "type": "rect",
     "properties": {
       "enter": {
         "fill": {"value": "white"},
         "x": {"value": 800},
         "x2": {"value": 950},
         "y": {"value": 0},
         "y2": {"value": 405}
       }
     }
   },
   {
     // Update the painting title when a point has been moused over.
     "name": "painting_title",
     "type": "text",
     "properties": {
       "enter": {
         "align": {"value": "left"},
         "fill": {"value": "black"},
         "fontSize": {"value": 18},
         "fontStyle": {"value": "bold"},
         "text": {"signal": "tooltip.title"}
       },
       "update": {
         "x": {"value": 20},
         "y": {"value": 20},
         "text": {"signal": "tooltip.title"}
       }
     }
   },
   {
     // Update the painting artist when a point has been moused over.
     "name": "painting_artist",
     "type": "text",
     "properties": {
       "enter": {
         "align": {"value": "left"},
         "fill": {"value": "gray"},
         "fontSize": {"value": 14},
         "x": {"value": 20},
         "y": {"value": 40},
         "fontStyle": {"value": "italic"}
       },
       "update": {
         "text": {"signal": "tooltip.artist"}
       }
     }
   },
   {
     // Manually create the artist legend to support interaction.
     // Selecting text in the legend updates the opacity of the points.
     "name": "artist_legend",
     "type": "group",
     "properties": {
       "enter": {
         "x": {"value": 820},
         "y": {"value": 0},
         "width": {"value": 160},
         "height": {"value": 80},
         "stroke": {"value": "#ddd"},
         "stroke-width": {"value": 2},
         "fill": {"value": "white"}
       }
     },
     "marks": [
       {
         // Add a text mark for each artist specified in "popular_artists"
         "name": "artist_legend",
         "type": "text",
         "from": {"data": "popular_artists"},
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "fill": {"value": "black"},
             "x": {"value": 7},
             "y": {"scale": "scale_artist_position", "field": "name"},
             "fontSize": {"value": 12},
             "text": {"field": "name"}
           },
           "update": {
             "opacity": [
               {"test": "datum.name == artist", "value": 1},
               {"test": "period ==  && artist == ", "value": 1},
               {"value": 0.15}
             ]
           }
         }
       },
       {
         // Add a text mark for the legend title.
         "type": "text",
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "fill": {"value": "black"},
             "x": {"value": 7},
             "y": {"value": 15},
             "fontSize": {"value": 12},
             "fontStyle": {"value": "bold"},
             "text": {"value": "Most Represented Artists"}
           }
         }
       }
     ]
   },
   {
     // Manually create the period legend to support interaction.
     // Selecting text in the legend updates the opacity of the points.
     "name": "period_legend",
     "type": "group",
     "properties": {
       "enter": {
         "x": {"value": 820},
         "y": {"value": 95},
         "width": {"value": 160},
         "height": {"value": 80},
         "stroke": {"value": "#ddd"},
         "stroke-width": {"value": 2},
         "fill": {"value": "white"}
       }
     },
     "marks": [
       {
         // Add a text mark for each period specified in "periods"
         "name": "period_legend_text",
         "type": "text",
         "from": {"data": "periods"},
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "fill": {"value": "black"},
             "x": {"value": 25},
             "y": {"scale": "scale_period_position", "field": "data"},
             "fontSize": {"value": 12},
             "text": {"scale": "scale_period_text", "field": "data"}
           },
           "update": {
             "opacity": [
               {"test": "datum.data == period", "value": 1},
               {"test": "period ==  && artist == ", "value": 1},
               {"value": 0.15}
             ]
           }
         }
       },
       {
         // Add a text mark for the legend title.
         "type": "text",
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "fill": {"value": "black"},
             "x": {"value": 7},
             "y": {"value": 15},
             "fontSize": {"value": 12},
             "fontStyle": {"value": "bold"},
             "text": {"value": "Periods"}
           }
         }
       },
       {
         // Add a filled circle for each text mark in the legend to specify the point color.
         "name": "period_legend_symbol",
         "type": "symbol",
         "from": {"data": "periods"},
         "properties": {
           "enter": {
             "size": {"value": 75},
             "fill": {"scale": "scale_period_colour", "field": "data"},
             "x": {"value": 12},
             "y": {"scale": "scale_period_position", "field": "data", "offset": -5}
           }
         }
       }
     ]
   },
   {
     "name": "shape_legend",
     "type": "group",
     "properties": {
       "enter": {
         "x": {"value": 820},
         "y": {"value": 190},
         "width": {"value": 160},
         "height": {"value": 50},
         "stroke": {"value": "#ddd"},
         "stroke-width": {"value": 2},
         "fill": {"value": "white"}
       }
     },
     "marks": [
       {
         "type": "text",
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "fill": {"value": "black"},
             "x": {"value": 25},
             "y": {"value": 30},
             "fontSize": {"value": 12},
             "text": {"value": "Mouseover for image"}
           }
         }
       },
       {
         "type": "text",
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "fill": {"value": "black"},
             "x": {"value": 25},
             "y": {"value": 45},
             "fontSize": {"value": 12},
             "text": {"value": "No image available"}
           }
         }
       },
       {
         // Add a text mark for the legend title.
         "type": "text",
         "properties": {
           "enter": {
             "align": {"value": "left"},
             "fill": {"value": "black"},
             "x": {"value": 7},
             "y": {"value": 15},
             "fontSize": {"value": 12},
             "fontStyle": {"value": "bold"},
             "text": {"value": "Image Availability"}
           }
         }
       },
       {
         "type": "symbol",
         "properties": {
           "enter": {
             "size": {"value": 75},
             "fill": {"value": "#253494"},
             "x": {"value": 12},
             "y": {"value": 25}
           }
         }
       },
       {
         "type": "symbol",
         "properties": {
           "enter": {
             "size": {"value": 75},
             "shape": {"value": "square"},
             "fill": {"value": "#253494"},
             "x": {"value": 12},
             "y": {"value": 40}
           }
         }
       }
     ]
   },
   {
     // Add a text mark for the annotation of the reference point.
     "name": "record_annotation",
     "type": "text",
     "from": {"data": "old_record"},
     "properties": {
       "enter": {
         "align": {"value": "left"},
         "fill": {"value": "grey"},
         "x": {"scale": "scale_date", "field": "date_sold", "offset": 9},
         "y": {"scale": "scale_price", "field": "price_adj", "offset": 3},
         "fontSize": {"value": 10},
         "fontStyle": {"value": "italic"},
         "text": {"value": "Record sale price prior to first listed painting."}
       },
       "update": {
         // Update the opacity of the text based on whether or not the artist, period, or nothing is selected.
         "opacity": [
           {"test": "datum.artist == artist", "value": 1},
           {"test": "datum.period == period", "value": 1},
           {"test": "period ==  && artist == ", "value": 1},
           {"value": 0.25}
         ]
       }
     }
   },
   {
     // The painting image tooltip.
     "type": "image",
     "from": {
       // Only draw the tooltip image when there is an image available.
       // If there is an image associated with the tooltip point the filter will keep the only element and
       // draw the image. Otherwise the value will be removed and nothing will be drawn.
       "data": "drawImage",
       "transform": [{"type": "filter", "test": "tooltip.img != null"}]
     },
     "properties": {
       "update": {
         "url": {"signal": "tooltip.img"},
         "width": {"signal": "image_size.width"},
         "height": {"signal": "image_size.height"},
         // Align, baseline, x, and y all use the offset predicates to account for the position to update 
         // the image location so that the image is not drawn out of the visible range of the scatterplot.
         
         // Specify the alignment based on the x position. 
         // If the point is in the right half of the scatterplot, draw it to the left.
         "align": [
           {"test": "xPosition < 550", "value": "left"},
           {"value": "right"} 
         ],
         // Specify the baseline based on the y position.
         // If the point is near the bottom, display the image above the point.
         "baseline": [
           {"test": "yPosition > 150", "value": "bottom"},
           {"value": "top"} 
         ],
         // Update the offset of the x position based on whether or not 
         // the point is displayed to the left or right.
         "x": [
           {"test": "xPosition < 550", "scale": "scale_date", "signal": "tooltip.date_sold", "offset": 7},
           {"scale": "scale_date", "signal": "tooltip.date_sold", "offset": -7} 
         ],
         // Update the offset of the y position based on whether or not
         // the point is displayed to the bottom or top. 
         "y": [
           {"test": "yPosition > 150", "scale": "scale_price", "signal": "tooltip.price_adj", "offset": -7},
           {"scale": "scale_price", "signal": "tooltip.price_adj", "offset": 7}
         ]
       }
     }
   }
 ]

} </graph>