Txantiloi:Graph:Saldutako margolanik garestienak

Wikipedia, Entziklopedia askea
Grafiko hau ezin da une honetan ikusi, software arazo bat dela eta. Lanean ari gara ahalik eta lasterren grafikoak berriro erakutsi ahal izateko.


<graph>

{
  "version": 2, "width": 950, "height": 400,

  "data": [
    {
      // 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.
      "name": "table",
      "format": {"type": "json", "parse": {"date_sold": "date"} },
      "values": [
        {"date_sold": "April 18, 1985", "price_adj": 23140934, "year_painted": 1462, "period": "p1", "artist": "Mantegna", "author": "other", "title": "Errege Magoen Adorazioa", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "March 30, 1987", "price_adj": 82776708, "year_painted": 1888, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Ontzia Hamabost Ekilorerekin", "ratio": {"x": 1, "y": 1.26}, "img": "wikirawupload://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": 112457440, "year_painted": 1889, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Irisak", "ratio": {"x": 1.31, "y": 1}, "img": "wikirawupload://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": 77241860, "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": 91499477, "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": 67309960, "year_painted": 1537, "period": "p1", "artist": "Pontormo", "author": "other", "title": "Halberdier baten erretratoa", "ratio": {"x": 1, "y": 1.316}, "img": "wikirawupload://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": 114732886, "year_painted": 1889, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Joseph Roulinen erretratoa", "ratio": {"x": 1, "y": 1.184}, "img": "wikirawupload://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": 77827141, "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": 94310432, "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": 149680973, "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://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": 141697988, "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://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": 93529371, "year_painted": 1889, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Gari soro bat altzifreekin", "ratio": {"x": 1.258, "y": 1}, "img": "wikirawupload://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": 70137334, "year_painted": 1890, "period": "p2", "artist": "Vincent van Gogh", "author": "Van Gogh", "title": "Emakume nekazaria gari hondo batekin", "ratio": {"x": 1, "y": 1.268}, "img": "wikirawupload://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": 103980094, "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://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": 86084998, "year_painted": 1894, "period": "p2", "artist": "Paul Cézanne", "author": "other", "title": "Rideau, Cruchon et Compotier", "ratio": {"x": 1.429, "y": 1}, "img": "wikirawupload://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": 70436737, "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": 75711640, "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": 101073723, "year_painted": 1611, "period": "p1", "artist": "Peter Paul Rubens", "author": "other", "title": "Inozenteen Sarraskia", "ratio": {"x": 1.348, "y": 1}, "img": "wikirawupload://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": 90197178, "year_painted": 1533, "period": "p1", "artist": "Tiziano", "author": "other", "title": "Alfonso d'Avalosen erretratua, Vastoko Markesa", "ratio": {"x": 1, "y": 1.284}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Titian_-_Marchese_del_Vasto.jpg/190px-Titian_-_Marchese_del_Vasto.jpg"},
        {"date_sold": "May 4, 2004", "price_adj": 130723866, "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": 111955029, "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": 158733080, "year_painted": 1907, "period": "p3", "artist": "Gustav Klimt", "author": "other", "title": "Adele Bloch-Bauer I.aren erretratua", "ratio": {"x": 1, "y": 1}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Gustav_Klimt_046.jpg/190px-Gustav_Klimt_046.jpg"},
        {"date_sold": "October 12, 2006", "price_adj": 74663338, "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": 94064048, "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": 103395201, "year_painted": 1912, "period": "p3", "artist": "Gustav Klimt", "author": "other", "title": "Adele Bloch-Bauer II", "ratio": {"x": 1, "y": 1.642}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Gustav_Klimt_047.jpg/190px-Gustav_Klimt_047.jpg"},
        {"date_sold": "November 2, 2006", "price_adj": 164612083, "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": 161672582, "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": 77734553, "year_painted": 1875, "period": "p2", "artist": "Thomas Eakins", "author": "other", "title": "The Gross Clinic", "ratio": {"x": 1, "y": 1.242}, "img": "wikirawupload://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": 83267424, "year_painted": 1950, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "Zentro zuria (Horia, arosa, labanda eta arroa)", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "May 16, 2007", "price_adj": 81987090, "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": 91452415, "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": 94989113, "year_painted": 1976, "period": "p4", "artist": "Francis Bacon", "author": "other", "title": "Triptikoa, 1976", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "June 24, 2008", "price_adj": 88679016, "year_painted": 1919, "period": "p3", "artist": "Claude Monet", "author": "other", "title": "Le Bassin aux Nymphéas", "ratio": {"x": 2.043, "y": 1}, "img": "wikirawupload://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": 110092736, "year_painted": 1963, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": "Zortzi Elvis", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "November 3, 2008", "price_adj": 66058394, "year_painted": 1916, "period": "p3", "artist": "Kazimir Malevitx", "author": "other", "title": "Konposizio supremazista", "ratio": {"x": 1, "y": 1.247}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/1/13/Suprematist_Composition_-_Kazimir_Malevich.jpg/190px-Suprematist_Composition_-_Kazimir_Malevich.jpg"},
        {"date_sold": "February 1, 2009", "price_adj": 78030382, "year_painted": 1559, "period": "p1", "artist": "Tiziano", "author": "other", "title": "Diana eta Akteon", "ratio": {"x": 1.092, "y": 1}, "img": "wikirawupload://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": 119568137, "year_painted": 1954, "period": "p4", "artist": "Jasper Johns", "author": "other", "title": "Bandera", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "May 4, 2010", "price_adj": 115744674, "year_painted": 1932, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Biluzia, hosto berdeak eta aurpegia", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "November 2, 2010", "price_adj": 74961069, "year_painted": 1917, "period": "p3", "artist": "Amedeo Modigliani", "author": "other", "title": "La Belle Romaine", "ratio": {"x": 1, "y": 1.579}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/c/cc/Amedeo_Modigliani_063.jpg/190px-Amedeo_Modigliani_063.jpg"},
        {"date_sold": "November 8, 2010", "price_adj": 68873964, "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": 27290784, "year_painted": 1893, "period": "p2", "artist": "Paul Cézanne", "author": "other", "title": "Karta jokalariak", "ratio": {"x": 1.418, "y": 1}, "img": "wikirawupload://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": 69000849, "year_painted": 1946, "period": "p4", "artist": "Qi Baishi", "author": "other", "title": "Arranoa pinu batean zutik", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "June 4, 2011", "price_adj": 65466165, "year_painted": 1350, "period": "p1", "artist": "Wang Meng", "author": "other", "title": "Zhichuan Resettlement", "ratio": {"x": 1, "y": 2.152}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/ZhichuanResettlement.jpg/190px-ZhichuanResettlement.jpg"},
        {"date_sold": "July 12, 2011", "price_adj": 79027367, "year_painted": 1526, "period": "p1", "artist": "Hans Holbein", "author": "other", "title": "Darmstadt Madonna", "ratio": {"x": 1, "y": 1.416}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Darmstadtmadonna.jpg/190px-Darmstadtmadonna.jpg"},
        {"date_sold": "2012", "price_adj": 121831280, "year_painted": 1917, "period": "p3", "artist": "Amedeo Modigliani", "author": "other", "title": "Biluzia etzanda kuxin urdinarekin", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "March 2, 2012", "price_adj": 74027990, "year_painted": 1559, "period": "p1", "artist": "Tiziano", "author": "other", "title": "Diana eta Kalisto", "ratio": {"x": 1.086, "y": 1}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/TitianDianaCallistoEdinburgh.jpg/190px-TitianDianaCallistoEdinburgh.jpg"},
        {"date_sold": "May 2, 2012", "price_adj": 123816201, "year_painted": 1895, "period": "p2", "artist": "Edvard Munch", "author": "other", "title": "Oihua", "ratio": {"x": 1, "y": 1.332}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/The_Scream_Pastel.jpg/190px-The_Scream_Pastel.jpg"},
        {"date_sold": "May 8, 2012", "price_adj": 89703442, "year_painted": 1961, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "Laraja, Gorria, Horia", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "November 13, 2012", "price_adj": 77561613, "year_painted": 1954, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "No 1 (Erret-gorria eta urdina)", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "2013", "price_adj": 101757143, "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://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": 157723571, "year_painted": 1932, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Le Rêve", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "May 2013", "price_adj": 129740357, "year_painted": 1519, "period": "p1", "artist": "Leonardo da Vinciri egotzia", "author": "other", "title": "Salvator Mundi", "ratio": {"x": 1, "y": 1.453}, "img": "wikirawupload://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Leonardo_da_Vinci_or_Boltraffio_%28attrib%29_Salvator_Mundi_circa_1500.jpg/190px-Leonardo_da_Vinci_or_Boltraffio_%28attrib%29_Salvator_Mundi_circa_1500.jpg"},
        {"date_sold": "October 4, 2013", "price_adj": 107557300, "year_painted": 1968, "period": "p4", "artist": "Barnett Newman", "author": "other", "title": "Annaren Argia", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "November 12, 2013", "price_adj": 144907259, "year_painted": 1969, "period": "p4", "artist": "Francis Bacon", "author": "other", "title": "Lucian Freuden hiru estudioak", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "November 13, 2013", "price_adj": 107297819, "year_painted": 1963, "period": "p4", "artist": "Andy Warhol", "author": "Warhol", "title": "Silver Car Crash (Double Disaster)", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "May 13, 2014", "price_adj": 66328807, "year_painted": 1952, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "Untitled", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "May 13, 2014", "price_adj": 84271478, "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": 80907227, "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": 186235311, "year_painted": 1951, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "No. 6 (Bioleta, Berdea eta Gorria)", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "November 5, 2014", "price_adj": 65207390, "year_painted": 1881, "period": "p2", "artist": "Édouard Manet", "author": "other", "title": "Le Printemps", "ratio": {"x": 1, "y": 1.447}, "img": "wikirawupload://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": 82028644, "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": 69693058, "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": 69693058, "year_painted": 1970, "period": "p4", "artist": "Cy Twombly", "author": "other", "title": "Untitled", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "February 2015", "price_adj": 300000000, "year_painted": 1892, "period": "p2", "artist": "Paul Gauguin", "author": "other", "title": "Nafea Faa Ipoipo (Ezkonduko zara nirekin?)", "ratio": {"x": 1, "y": 1.332}, "img": "wikirawupload://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": "May 5, 2015", "price_adj": 66330000, "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://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": 67365000, "year_painted": 1938, "period": "p3", "artist": "Pablo Picasso", "author": "Picasso", "title": "Femme à la résille", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "May 11, 2015", "price_adj": 179365000, "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": 81925000, "year_painted": 1961, "period": "p4", "artist": "Mark Rothko", "author": "other", "title": "No. 10", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "September, 2015", "price_adj": 300000000, "year_painted": 1955, "period": "p4", "artist": "Willem de Kooning", "author": "other", "title": "Interchange", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "September, 2015", "price_adj": 200000000, "year_painted": 1948, "period": "p4", "artist": "Jackson Pollock", "author": "other", "title": "Number 17A", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "September 21, 2015", "price_adj": 181000000, "year_painted": 1634, "period": "p1", "artist": "Rembrandt", "author": "other", "title": "Maerten Soolmans eta Oopjen Coppiten erretratuak", "ratio": {"x": 1.397, "y": 1}, "img": "wikirawupload://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": 67450000, "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": 95365000, "year_painted": 1964, "period": "p4", "artist": "Roy Lichtenstein", "author": "other", "title": "Nurse", "ratio": {"x": 0, "y": 0} },
        {"date_sold": "November 9, 2015", "price_adj": 170405000, "year_painted": 1917, "period": "p3", "artist": "Amedeo Modigliani", "author": "other", "title": "Nu Couché", "ratio": {"x": 1.583, "y": 1}, "img": "wikirawupload://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": 70530000, "year_painted": 1968, "period": "p4", "artist": "Cy Twombly", "author": "other", "title": "Untitled (New York City)", "ratio": {"x": 0, "y": 0} },
      ]
    },
    {
      "name": "date_min_max",
      "format": {"type": "json", "parse": {"min_max": "date"} },
      "values": [
        {"min_max": "1985"},
        {"min_max": "2017"}
      ]
    },
    {
      // 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": "Saldutako margolanik garestienen salmenta data", "ratio": {"x": 0, "y":0} },
      "streams": [
        {"type": "@points:mouseover", "expr": "datum"},
        {"type": "@points:mouseout", "expr": "{title: 'Saldutako margolanik garestienak', 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": ["1700 baino lehen", "1851–1900", "1901–1945", "1945 eta gero"]
    },
    {
      // 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": "Salmenta data",
      "tickSizeEnd": 0,
      "subdivide": 4
    },
    {
      "type": "y",
      "scale": "scale_price",
      "title": "Prezio ajustatua (2015 urteko dolarretara)",
      "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 != 'Saldutako margolanik garestienen salmenta data'"}]
      },
      "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": "Ez dago irudirik eskuragarri"},
              "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": "ez dago eduki librerik"},
              "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": "Gehien agertzen diren artistak"}
            }
          }
        }
      ]
    },
    {
      // 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": "Garaiak"}
            }
          }
        },
        {
          // 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": "Jarri sagua gainean irudia lortzeko"}
            }
          }
        },
        {
          "type": "text",
          "properties": {
            "enter": {
              "align": {"value": "left"},
              "fill": {"value": "black"},
              "x": {"value": 25},
              "y": {"value": 45},
              "fontSize": {"value": 12},
              "text": {"value": "Ez dago irudirik eskuragarri"}
            }
          }
        },
        {
          // 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": "Irudien lorgarritasuna"}
            }
          }
        },
        {
          "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": "Hemen agertzen den lehen margolanaren aurreko errekorra."}
        },
        "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>