User:Kumkum/Brouillon

{ "width": 500, "height": 200, "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, "data": [ {     "name": "table", "values": [ {"x" : 1999,  "y" : 3},   {"x": 2000,   "y" : 3.8},   {"x": 2002,   "y" : 3.5},   {"x": 2003,   "y" : 4.7},   {"x": 2004,   "y" : 3.7},   {"x": 2005,   "y" : 3.7},   {"x": 2006,   "y" : 4.2},   {"x": 2007,   "y" : 4},   {"x": 2008,   "y" : 2.9},   {"x": 2009,   "y" : -2},   {"x": 2010,   "y" : -4.5},   {"x": 2011,   "y" : -6.9},   {"x": 2012,   "y" : -7},   {"x": 2013,   "y" : -3.9},   {"x": 2014,   "y" : -0.6} ]   }  ],  "scales": [ {     "name": "x", "type": "ordinal", "range": "width", "zero": false, "domain": {"data": "table", "field": "data.x"} },   {      "name": "y", "type": "linear", "range": "height", "nice": true, "domain": {"data": "table", "field": "data.y"} } ],  "axes": [ {"type": "x", "scale": "x", "ticks": 20}, {"type": "y", "scale": "y"} ], "marks": [ {     "type": "area", "from": {"data": "table"}, "properties": { "enter": { "interpolate": {"value": "monotone"}, "x": {"scale": "x", "field": "data.x"}, "y": {"scale": "y", "field": "data.y"}, "y2": {"scale": "y", "value": 0}, "fill": {"value": "steelblue"} },       "update": { "fillOpacity": {"value": 1} },       "hover": { "fillOpacity": {"value": 0.5} }     }    }  ] }

Taux de croissance annuel moyen du PIB grec sources : Indexmundi et CIA FB

{ "width": 500, "height": 200, "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, "data": [ {     "name": "table", "values": [ {"x" : 1999,  "y" : 3},   {"x": 2000,   "y" : 3.8},   {"x": 2002,   "y" : 3.5},   {"x": 2003,   "y" : 4.7},   {"x": 2004,   "y" : 3.7},   {"x": 2005,   "y" : 3.7},   {"x": 2006,   "y" : 4.2},   {"x": 2007,   "y" : 4},   {"x": 2008,   "y" : 2.9},   {"x": 2009,   "y" : -2},   {"x": 2010,   "y" : -4.5},   {"x": 2011,   "y" : -6.9},   {"x": 2012,   "y" : -7},   {"x": 2013,   "y" : -3.9},   {"x": 2014,   "y" : -0.6} ]   }  ],  "scales": [ {     "name": "x", "type": "ordinal", "range": "width", "domain": {"data": "table", "field": "data.x"} },   {      "name": "y", "range": "height", "nice": true, "domain": {"data": "table", "field": "data.y"} } ],  "axes": [ {"type": "x", "scale": "x"}, {"type": "y", "scale": "y"} ], "marks": [ {     "type": "rect", "from": {"data": "table"}, "properties": { "enter": { "x": {"scale": "x", "field": "data.x"}, "width": {"scale": "x", "band": true, "offset": -1}, "y": {"scale": "y", "field": "data.y"}, "y2": {"scale": "y", "value": 0} },       "update": { "fill": {"value": "steelblue"} },       "hover": { "fill": {"value": "red"} }     }    }  ] }

Taux de croissance annuel moyen du PIB grec sources : Indexmundi et CIA FB