User:Slaporte/sandbox

Another hashtag test

test edit?

Does the #test work?

Scatter plot
{ "version": 2, "width": 800, "height": 400,

"data": [   {      "name": "table", "format": {"type": "json", "parse": {"date_sold": "date"}}, "values": [       {"date_sold": "March 30, 1987", "price_adj": 84.2, "year_painted": 1888, "period": "p2", "author": "Van Gogh"}, {"date_sold": "November 11, 1987", "price_adj": 111.2, "year_painted": 1889, "period": "p2", "author": "Van Gogh"}, {"date_sold": "November 28, 1988", "price_adj": 76.3, "year_painted": 1905, "period": "p3", "author": "Picasso"}, {"date_sold": "May 9, 1989", "price_adj": 92.0, "year_painted": 1901, "period": "p3", "author": "Picasso"}, {"date_sold": "May 31, 1989", "price_adj": 67.7, "year_painted": 1537, "period": "p1", "author": "other"}, {"date_sold": "August 1, 1989", "price_adj": 113, "year_painted": 1889, "period": "p2", "author": "Van Gogh"}, {"date_sold": "November 27, 1989", "price_adj": 76.9, "year_painted": 1904, "period": "p3", "author": "Picasso"}, {"date_sold": "November 30, 1989", "price_adj": 93.2, "year_painted": 1905, "period": "p3", "author": "Picasso"}, {"date_sold": "May 15, 1990", "price_adj": 152.0, "year_painted": 1890, "period": "p2", "author": "Van Gogh"}, {"date_sold": "May 17, 1990", "price_adj": 143.9, "year_painted": 1876, "period": "p2", "author": "other"}, {"date_sold": "May 1993", "price_adj": 94.1, "year_painted": 1889, "period": "p2", "author": "Van Gogh"}, {"date_sold": "1997", "price_adj": 70.4, "year_painted": 1890, "period": "p2", "author": "Van Gogh"}, {"date_sold": "November 19, 1998", "price_adj": 103.8, "year_painted": 1889, "period": "p2", "author": "Van Gogh"}, {"date_sold": "May 10, 1999", "price_adj": 86.6, "year_painted": 1894, "period": "p2", "author": "other"}, {"date_sold": "November 10, 1999", "price_adj": 70.0, "year_painted": 1938, "period": "p3", "author": "Picasso"}, {"date_sold": "November 8, 2000", "price_adj": 75.2, "year_painted": 1902, "period": "p3", "author": "Picasso"}, {"date_sold": "July 10, 2002", "price_adj": 101.4, "year_painted": 1611, "period": "p1", "author": "other"}, {"date_sold": "November 2003", "price_adj": 90.3, "year_painted": 1533, "period": "p1", "author": "other"}, {"date_sold": "May 4, 2004", "price_adj": 131.1, "year_painted": 1905, "period": "p3", "author": "Picasso"}, {"date_sold": "May 3, 2006", "price_adj": 111.9, "year_painted": 1941, "period": "p3", "author": "Picasso"}, {"date_sold": "June 18, 2006", "price_adj": 158.4, "year_painted": 1907, "period": "p3", "author": "other"}, {"date_sold": "October 12, 2006", "price_adj": 94.4, "year_painted": 1955, "period": "p4", "author": "other"}, {"date_sold": "October 12, 2006", "price_adj": 74.9, "year_painted": 1959, "period": "p4", "author": "other"}, {"date_sold": "November 2, 2006", "price_adj": 165.4, "year_painted": 1912, "period": "p3", "author": "other"}, {"date_sold": "November 2, 2006", "price_adj": 103.9, "year_painted": 1948, "period": "p4", "author": "other"}, {"date_sold": "November 18, 2006", "price_adj": 162.4, "year_painted": 1953, "period": "p4", "author": "other"}, {"date_sold": "April 12, 2007", "price_adj": 78.3, "year_painted": 1875, "period": "p2", "author": "other"}, {"date_sold": "May 15, 2007", "price_adj": 83.4, "year_painted": 1950, "period": "p4", "author": "other"}, {"date_sold": "May 16, 2007", "price_adj": 82.1, "year_painted": 1963, "period": "p4", "author": "Warhol"}, {"date_sold": "May 20, 2007", "price_adj": 91.6, "year_painted": 1964, "period": "p4", "author": "Warhol"}, {"date_sold": "May 14, 2008", "price_adj": 94.8, "year_painted": 1976, "period": "p4", "author": "other"}, {"date_sold": "June 24, 2008", "price_adj": 87.6, "year_painted": 1919, "period": "p3", "author": "other"}, {"date_sold": "October 2008", "price_adj": 109.9, "year_painted": 1963, "period": "p4", "author": "Warhol"}, {"date_sold": "November 3, 2008", "price_adj": 67.2, "year_painted": 1916, "period": "p3", "author": "other"}, {"date_sold": "February 1, 2009", "price_adj": 79.2, "year_painted": 1559, "period": "p1", "author": "other"}, {"date_sold": "March 2010", "price_adj": 120.3, "year_painted": 1954, "period": "p4", "author": "other"}, {"date_sold": "May 4, 2010", "price_adj": 116.2, "year_painted": 1932, "period": "p3", "author": "Picasso"}, {"date_sold": "November 2, 2010", "price_adj": 75.0, "year_painted": 1917, "period": "p3", "author": "other"}, {"date_sold": "November 8, 2010", "price_adj": 68.9, "year_painted": 1962, "period": "p4", "author": "Warhol"}, {"date_sold": "April 2011", "price_adj": 274, "year_painted": 1893, "period": "p2", "author": "other"}, {"date_sold": "May 22, 2011", "price_adj": 69.0, "year_painted": 1946, "period": "p4", "author": "other"}, {"date_sold": "June 4, 2011", "price_adj": 65.5, "year_painted": 1350, "period": "p1", "author": "other"}, {"date_sold": "July 12, 2011", "price_adj": 79.0, "year_painted": 1526, "period": "p1", "author": "other"}, {"date_sold": "2012", "price_adj": 118, "year_painted": 1917, "period": "p3", "author": "other"}, {"date_sold": "March 2, 2012", "price_adj": 74.4, "year_painted": 1559, "period": "p1", "author": "other"}, {"date_sold": "May 2, 2012", "price_adj": 124.2, "year_painted": 1895, "period": "p2", "author": "other"}, {"date_sold": "May 8, 2012", "price_adj": 90.0, "year_painted": 1961, "period": "p4", "author": "other"}, {"date_sold": "November 13, 2012", "price_adj": 77.3, "year_painted": 1954, "period": "p4", "author": "other"}, {"date_sold": "2013", "price_adj": 102, "year_painted": 1904, "period": "p3", "author": "other"}, {"date_sold": "March 26, 2013", "price_adj": 158.5, "year_painted": 1932, "period": "p3", "author": "Picasso"}, {"date_sold": "May 2013", "price_adj": 127.5, "year_painted": 1519, "period": "p1", "author": "other"}, {"date_sold": "October 4, 2013", "price_adj": 107.7, "year_painted": 1968, "period": "p4", "author": "other"}, {"date_sold": "November 12, 2013", "price_adj": 145.0, "year_painted": 1969, "period": "p4", "author": "other"}, {"date_sold": "November 13, 2013", "price_adj": 107.7, "year_painted": 1963, "period": "p4", "author": "Warhol"}, {"date_sold": "May 13, 2014", "price_adj": 84.2, "year_painted": 1952, "period": "p4", "author": "other"}, {"date_sold": "May 13, 2014", "price_adj": 80.9, "year_painted": 1961, "period": "p4", "author": "other"}, {"date_sold": "May 13, 2014", "price_adj": 66.3, "year_painted": 1984, "period": "p4", "author": "other"}, {"date_sold": "August 2014", "price_adj": 186, "year_painted": 1951, "period": "p4", "author": "other"}, {"date_sold": "November 5, 2014", "price_adj": 65.1, "year_painted": 1881, "period": "p2", "author": "other"}, {"date_sold": "November 12, 2014", "price_adj": 81.9, "year_painted": 1963, "period": "p4", "author": "Warhol"}, {"date_sold": "November 12, 2014", "price_adj": 69.6, "year_painted": 1966, "period": "p4", "author": "Warhol"}, {"date_sold": "November 12, 2014", "price_adj": 69.6, "year_painted": 1970, "period": "p4", "author": "other"}, {"date_sold": "February 2015", "price_adj": 300, "year_painted": 1892, "period": "p2", "author": "other"}, {"date_sold": "May 5, 2015", "price_adj": 66.3, "year_painted": 1888, "period": "p2", "author": "Van Gogh"}, {"date_sold": "May 11, 2015", "price_adj": 179.3, "year_painted": 1938, "period": "p3", "author": "Picasso"}, {"date_sold": "May 11, 2015", "price_adj": 67.4, "year_painted": 1955, "period": "p4", "author": "Picasso"}, {"date_sold": "May 15, 2015", "price_adj": 81.9, "year_painted": 1961, "period": "p4", "author": "other"} ]   },    {      "name": "date_min_max", "format": {"type": "json", "parse": {"min_max": "date"}}, "values": [       {"min_max": "1985"}, {"min_max": "2016"} ]   }  ],

"scales": [   {      "name": "scale_date", "type": "time", "domain": {"data": "date_min_max", "field": "min_max"}, "range": "width", "nice": "year" },   {      "name": "scale_price", "type": "linear", "domain": {"data": "table", "field": "price_adj"}, "range": "height", "nice": true },   {      "name": "scale_period_colour", "type": "ordinal", "domain": ["p1", "p2", "p3", "p4"], "range": ["red", "green", "blue", "cyan"] },   {      "name": "scale_period_text", "type": "ordinal", "domain": ["p1", "p2", "p3", "p4"], "range": ["before 1801", "1801–1900", "1901–1945", "after 1945"] },   {      "name": "scale_author_shape", "type": "ordinal", "domain": ["Van Gogh", "Picasso", "Warhol", "other"], "range": ["square", "triangle-up", "triangle-down", "circle"] },   {      "name": "scale_author_colour", "type": "ordinal", "domain": ["Van Gogh", "Picasso", "Warhol", "other"], "range": ["green", "blue", "cyan", "white"] }

],

"axes": [   {      "type": "x", "scale": "scale_date", "title": "Date of sale", "tickSizeEnd": 0, "subdivide": 4 },   {      "type": "y", "scale": "scale_price", "title": "Adjusted price (in $ millions)", "titleOffset": 50, "subdivide": 4 },   {      "type": "y", "scale": "scale_price", "title": "Adjusted price (in $ millions)", "titleOffset": 50, "subdivide": 4, "orient": "right" } ],

"legends": [   {      "title": "Periods", "fill": "scale_period_colour", "properties": {       "labels": {         "text": {"scale": "scale_period_text", "field": "data"}, "fontSize": {"value": 12} },       "legend": {         "x": {"value": 20}, "y": {"value": 0 }, "stroke": {"value": "black"} }     }    },    {      "title": "Authors", "shape": "scale_author_shape", "fill": "scale_author_colour", "properties": {       "labels": {         "fontSize": {"value": 12} },       "legend": {         "x": {"value": 125}, "y": {"value": 0 }, "stroke": {"value": "black"} }     }    }  ],

"marks": [   {      "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"}, "shape": {"scale": "scale_author_shape", "field": "author"}, "size": {"value": 50}, "stroke": {"value": "white"}, }     }    }  ] }