Format: Ro/3: Diferență între versiuni
De la alegeri.md
Oleg (Discuție | contribuții) (Pagină nouă: <graph> { "width": 1000, "height": 800, "padding": "auto", "data": [ {"name": "table", "values": [ {"t":3, "p": 1427, "series": "Best ever" }, {"t":4, "...) |
Oleg (Discuție | contribuții) |
||
Linia 498: | Linia 498: | ||
] | ] | ||
} </graph> | } </graph> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===1=== | ||
+ | <graph> | ||
+ | { | ||
+ | "version":2, | ||
+ | "width":875, | ||
+ | "height":350, | ||
+ | //"padding": {"top":25, "left":65, "bottom":25, "right":1}, | ||
+ | "data": [ | ||
+ | { | ||
+ | "name":"table", | ||
+ | //"format": { "type": "json", "parse": {"mdata":"date"}}, | ||
+ | "values": [ | ||
+ | {"mdata":"03/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"04/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"05/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"06/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"07/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"08/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"09/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"10/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"11/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"12/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"13/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"14/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"15/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"16/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"17/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"18/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"19/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"20/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"21/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"22/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"23/03", "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"24/03", "masti":9600, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"25/03", "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"26/03", "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"27/03", "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"28/03", "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"29/03", "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"30/03", "masti":38400, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":"31/03", "masti":38400, "manusi":9600, "costume":29400, "viziere":0}, | ||
+ | {"mdata":"01/04", "masti":48000, "manusi":9600, "costume":33400, "viziere":0}, | ||
+ | {"mdata":"02/04", "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":"03/04", "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":"04/04", "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":"05/04", "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":"06/04", "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":"07/04", "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":"08/04", "masti":81900, "manusi":9600, "costume":48900, "viziere":0}, | ||
+ | {"mdata":"09/04", "masti":81900, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":"10/04", "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":"11/04", "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":"12/04", "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":"13/04", "masti":213900, "manusi":9600, "costume":56894, "viziere":0}, | ||
+ | {"mdata":"14/04", "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":"15/04", "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":"16/04", "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":"17/04", "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":"18/04", "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":"19/04", "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":"20/04", "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":"21/04", "masti":237554, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":"22/04", "masti":263954, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":"23/04", "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":"24/04", "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":"25/04", "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":"26/04", "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":"27/04", "masti":325354, "manusi":112100, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":"28/04", "masti":327854, "manusi":114600, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":"29/04", "masti":345254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":"30/04", "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":"01/05", "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":"02/05", "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":"03/05", "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":"04/05", "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":"05/05", "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":"06/05", "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":"07/05", "masti":848255, "manusi":322600, "costume":121310, "viziere":87407}, | ||
+ | {"mdata":"08/05", "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":"09/05", "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":"10/05", "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":"11/05", "masti":891255, "manusi":333500, "costume":123530, "viziere":87557}, | ||
+ | {"mdata":"12/05", "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":"13/05", "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":"14/05", "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":"15/05", "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":"16/05", "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":"17/05", "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":"18/05", "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":"19/05", "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":"20/05", "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":"21/05", "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":"22/05", "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":"23/05", "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":"24/05", "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":"25/05", "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":"26/05", "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":"27/05", "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":"28/05", "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":"29/05", "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":"30/05", "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":"31/05", "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":"01/06", "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":"02/06", "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":"03/06", "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":"04/06", "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":"05/06", "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":"06/06", "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":"07/06", "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":"08/06", "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":"09/06", "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":"10/06", "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":"11/06", "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":"12/06", "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":"13/06", "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":"14/06", "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":"15/06", "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":"16/06", "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":"17/06", "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":"18/06", "masti":1544705, "manusi":551100, "costume":209610, "viziere":121417}, | ||
+ | {"mdata":"19/06", "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":"20/06", "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":"21/06", "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":"22/06", "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":"23/06", "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":"24/06", "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":"25/06", "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":"26/06", "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":"27/06", "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":"28/06", "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":"29/06", "masti":1785705, "manusi":595845, "costume":227900, "viziere":127417}, | ||
+ | {"mdata":"30/06", "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":"01/07", "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":"02/07", "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":"03/07", "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":"04/07", "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":"05/07", "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":"06/07", "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":"07/07", "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":"08/07", "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"09/07", "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"10/07", "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"11/07", "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"12/07", "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"13/07", "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"14/07", "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"15/07", "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"16/07", "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"17/07", "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"18/07", "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"19/07", "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"20/07", "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":"21/07", "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":"22/07", "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":"23/07", "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":"24/07", "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":"25/07", "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":"26/07", "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":"27/07", "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":"28/07", "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":"29/07", "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":"30/07", "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":"31/07", "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":"01/08", "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":"02/08", "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":"03/08", "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":"04/08", "masti":2274140, "manusi":757145, "costume":307030, "viziere":140077} | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name":"annotation", | ||
+ | "values": [ | ||
+ | {"start":"03/03", "end":"05/03", "text":"Cod galben"}, | ||
+ | {"start":"05/03", "end":"06/04", "text":"Cod portocaliu"}, | ||
+ | // {"start":"1584230400", "end":"1586044800", "text":"Cod roșu"}, | ||
+ | // {"start":"17 mar", "end":"16 mai", "text":"Stare de urgenta"}, | ||
+ | // {"start":"16 mai", "end":"4 aug", "text":"Stare de urgență în sănătate publică"}, | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "scales": [ | ||
+ | { | ||
+ | "name":"x", | ||
+ | "type":"ordinal", | ||
+ | "range":"width", | ||
+ | //"round": true, | ||
+ | // "nice": "month", | ||
+ | "domain": {"data":"table", "field":"mdata"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"y", | ||
+ | "type":"linear", | ||
+ | "range":"height", | ||
+ | "domain": {"data":"table", "field":"masti"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"color", | ||
+ | "type":"ordinal", | ||
+ | "domain": {"data":"annotation", "field":"text"}, | ||
+ | "range": ["#efc41d", "#fa8e3c", "#e2092a", "#800000", "#e2092a"] | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "axes": [ | ||
+ | { | ||
+ | "type":"x", | ||
+ | "scale":"x", | ||
+ | "tickSize": 5, | ||
+ | "values": [], | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#aaa"}}, | ||
+ | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}} | ||
+ | }, | ||
+ | }, | ||
+ | { | ||
+ | "type":"y", | ||
+ | "scale":"y", | ||
+ | "grid":true, | ||
+ | // "format": { "type": "json", "parse": {"thousands":"."}}, | ||
+ | //"offset":-50, | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#d9d9d9"}}, | ||
+ | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}}, | ||
+ | //"grid": {"stroke": {"value":"#333"}, "strokeWidth": {"value":1}}, | ||
+ | } | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "marks": [ | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"annotation"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":0}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"signal":"height"}, | ||
+ | "fill": {"scale":"color", "field":"text"}, | ||
+ | "opacity": {"value":0.2} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"manusi"}, | ||
+ | "stroke": {"value":"#5b97dd"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"costume"}, | ||
+ | "stroke": {"value":"#26797a"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"viziere"}, | ||
+ | "stroke": {"value":"#999"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"masti"}, | ||
+ | "stroke": {"value":"#5ab8f0"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"text", | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"signal":"width", "mult":0.5}, | ||
+ | "y": {"value": -10}, | ||
+ | "text": {"template":"Distribuția echipamentelor de protecție individuală"}, | ||
+ | "fill": {"value":"#336"}, | ||
+ | "fontSize": {"value":15}, | ||
+ | "align": {"value":"center"}, | ||
+ | "fontWeight": {"value":"bold"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "legends": [ | ||
+ | { | ||
+ | "fill":"color", | ||
+ | "properties": { | ||
+ | "symbols": { | ||
+ | "strokeWidth": {"value":0}, | ||
+ | "shape": {"value":"square"}, | ||
+ | "opacity": {"value":0.3} | ||
+ | }, | ||
+ | "legend": { | ||
+ | "x": {"value":1}, | ||
+ | "y": {"value":0}, | ||
+ | "fill": {"value":"transparent"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </graph> | ||
+ | |||
+ | ===2=== | ||
+ | |||
+ | <graph>{ | ||
+ | "version": 2, | ||
+ | "description": "Всплывающие данные", | ||
+ | "height": 200, | ||
+ | "width": 910, | ||
+ | // "viewport": [945,230], | ||
+ | // "padding": 5, | ||
+ | "padding": {"top": 15, "left": 33, "bottom": 25, "right": 1}, | ||
+ | // | ||
+ | "data": [ | ||
+ | { | ||
+ | "name": "table", | ||
+ | "values": [ | ||
+ | {"x": "7 mar", "y": 109}, | ||
+ | {"x": "B", "y": 55}, | ||
+ | {"x": "C", "y": 9}, | ||
+ | {"x": "D", "y": 91}, | ||
+ | {"x": "31 iul", "y": 81}, | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "signals": [ | ||
+ | { | ||
+ | "name": "tooltip", | ||
+ | "init": {}, | ||
+ | "streams": [ | ||
+ | {"type": "rect:mouseover", "expr": "datum"}, | ||
+ | {"type": "rect:mouseout", "expr": "{}"} | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "predicates": [ | ||
+ | { | ||
+ | "name": "tooltip", "type": "==", | ||
+ | "operands": [{"signal": "tooltip._id"}, {"arg": "id"}] | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "scales": [ | ||
+ | { | ||
+ | "name": "x", | ||
+ | "type": "ordinal", | ||
+ | "range": "width", | ||
+ | "padding": 0.8, | ||
+ | // "round": true, | ||
+ | "domain": {"data": "table", "field": "x"} | ||
+ | }, | ||
+ | { | ||
+ | "name": "y", | ||
+ | "type": "linear", | ||
+ | "range": "height", | ||
+ | "nice": true, | ||
+ | "domain": {"data": "table", "field": "y"} | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "axes": [ | ||
+ | { | ||
+ | "type": "x", | ||
+ | "scale": "x", | ||
+ | // "grid": true, | ||
+ | "values": ["7 mar", "31 iul"], | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value": "#aaa"}}, | ||
+ | "labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}}, | ||
+ | "axis": {"stroke": {"value": "#ccc"}} | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "y", | ||
+ | "scale": "y", | ||
+ | "ticks": 5, // кол-во значений на оси y | ||
+ | // "grid": true, | ||
+ | // "values": [10, 30, 50, 70, 110], | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value": "#d9d9d9"}}, | ||
+ | "labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}}, | ||
+ | "axis": {"stroke": {"value": "#ccc"}} | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "marks": [ | ||
+ | { | ||
+ | "type": "rule", | ||
+ | "properties": | ||
+ | { | ||
+ | "enter": | ||
+ | { | ||
+ | "x": {"field": {"group": "x"}}, | ||
+ | "x2": {"field": {"group": "width"}}, | ||
+ | "y": {"scale": "y", "value": 55}, "stroke": {"value": "#bababa"}, | ||
+ | "strokeWidth": {"value": 1}, "strokeDash": {"value": [5]} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "rect", | ||
+ | "from": {"data": "table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale": "x", "field": "x"}, | ||
+ | "width": {"scale": "x", "band": 1, "offset": 0}, | ||
+ | "y": {"scale": "y", "field": "y"}, | ||
+ | "y2": {"scale": "y", "value": 0} | ||
+ | }, | ||
+ | "update": {"fill": {"value": "#ff8a88"}}, | ||
+ | "hover": {"fill": {"value": "#c33"}}, | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "text", | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "align": {"value": "center"}, | ||
+ | "fill": {"value": "#666"}, | ||
+ | }, | ||
+ | "update": { | ||
+ | "x": {"scale": "x", "signal": "tooltip.x"}, | ||
+ | "dx": {"scale": "x", "mult": 0.5, "band": true}, | ||
+ | "y": {"scale": "y", "offset": -4, "signal": "tooltip.y"}, | ||
+ | "text": {"signal": "tooltip.y"}, | ||
+ | "fontSize": {"value": 12}, | ||
+ | "fillOpacity": { | ||
+ | "rule": [ | ||
+ | { | ||
+ | "predicate": {"name": "tooltip", "id": {"value": null}}, | ||
+ | "value": 0 | ||
+ | }, | ||
+ | {"value": 1} | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | }</graph> | ||
+ | |||
+ | |||
+ | |||
+ | ===3=== | ||
+ | |||
+ | <graph> | ||
+ | { | ||
+ | "version":2, | ||
+ | "width":885, | ||
+ | "height":350, | ||
+ | // "viewport":[945,230], | ||
+ | // "padding":{"top": 25, "left": 43, "bottom": 35, "right": 16}, | ||
+ | "padding":"auto", | ||
+ | "data": [ | ||
+ | { | ||
+ | "name":"table", | ||
+ | "values": [ | ||
+ | {"data":2005, "masti":6, "manusi":16, "costume":0, "viziere":0}, | ||
+ | {"data":2006, "masti":15, "manusi":17}, | ||
+ | {"data":2007, "masti":16, "manusi":21}, | ||
+ | {"data":2008, "masti":22, "manusi":28}, | ||
+ | {"data":2009, "masti":19, "manusi":25}, | ||
+ | {"data":2010, "masti":25, "manusi":50}, | ||
+ | {"data":2011, "masti":18, "manusi":33}, | ||
+ | {"data":2012, "masti":22, "manusi":67}, | ||
+ | {"data":2013, "masti":34, "manusi":174}, | ||
+ | {"data":2014, "masti":17, "manusi":183}, | ||
+ | {"data":2015, "masti":22, "manusi":206}, | ||
+ | {"data":2016, "masti":30, "manusi":338}, | ||
+ | {"data":2017, "masti":31, "manusi":1102}, | ||
+ | {"data":2018, "masti":48, "manusi":2008}, | ||
+ | {"data":2019, "masti":48, "manusi":2008}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name": "annotation", | ||
+ | "values": [ | ||
+ | {"start": 2013,"end": 2014,"text": "Cod roșu"}, | ||
+ | {"start": 2016,"end": 2019,"text": "Public art project"} | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | "scales": [ | ||
+ | { | ||
+ | "name": "x", | ||
+ | "type": "linear", | ||
+ | "range": "width", | ||
+ | "zero": false, | ||
+ | "domain": {"data": "table","field": "data"} | ||
+ | }, | ||
+ | { | ||
+ | "name": "y", | ||
+ | "type": "linear", | ||
+ | "range": "height", | ||
+ | "nice": true, | ||
+ | "domain": {"data": "table","field": "masti"} | ||
+ | }, | ||
+ | { | ||
+ | "name": "y", | ||
+ | "type": "linear", | ||
+ | "range": "height", | ||
+ | "nice": true, | ||
+ | "domain": {"data": "table","field": "manusi"} | ||
+ | }, | ||
+ | { | ||
+ | "name": "color", | ||
+ | "type": "ordinal", | ||
+ | "domain": {"data": "annotation","field": "text"}, | ||
+ | "range": ["black","red"] | ||
+ | } | ||
+ | ], | ||
+ | "axes": [ | ||
+ | { | ||
+ | "type": "x", | ||
+ | "scale": "x", | ||
+ | "format": "d", | ||
+ | "title": "Data", | ||
+ | "ticks": 15 | ||
+ | }, | ||
+ | { | ||
+ | "type": "y", | ||
+ | "scale": "y", | ||
+ | "title": "Population", | ||
+ | "grid": true, | ||
+ | "layer": "back" | ||
+ | }, | ||
+ | { | ||
+ | "type": "y", | ||
+ | "scale": "y", | ||
+ | // "title": "Photos", | ||
+ | "grid": false, | ||
+ | "layer": "back" | ||
+ | } | ||
+ | ], | ||
+ | "marks": [ | ||
+ | { | ||
+ | "type": "rect", | ||
+ | "from": {"data": "annotation"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale": "x","field": "start"}, | ||
+ | "y": {"value": 0}, | ||
+ | "x2": {"scale": "x","field": "end"}, | ||
+ | "y2": {"signal": "height"}, | ||
+ | "fill": {"scale": "color","field": "text"}, | ||
+ | "opacity": {"value": 0.2} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "line", | ||
+ | "from": {"data": "table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "interpolate": {"value": "monotone"}, | ||
+ | "x": {"scale": "x","field": "data"}, | ||
+ | "y": {"scale": "y","field": "masti"}, | ||
+ | "stroke": {"value": "steelblue"}, | ||
+ | "strokeWidth": {"value": 3}, | ||
+ | "interpolate": {"value": "step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "line", | ||
+ | "from": {"data": "table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "interpolate": {"value": "monotone"}, | ||
+ | "x": {"scale": "x","field": "data"}, | ||
+ | "y": {"scale": "y","field": "manusi"}, | ||
+ | "stroke": {"value": "red"}, | ||
+ | "strokeWidth": {"value": 3}, | ||
+ | "interpolate": {"value": "step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "symbol", | ||
+ | "from": {"data": "table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale": "x","field": "data"}, | ||
+ | "y": {"scale": "y","field": "masti"}, | ||
+ | "stroke": {"value": "steelblue"}, | ||
+ | "fill": {"value": "white"}, | ||
+ | "size": {"value": 30} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "text", | ||
+ | "from": { | ||
+ | "data": "table", | ||
+ | "transform": [ | ||
+ | { | ||
+ | "type": "aggregate", | ||
+ | "summarize": {"data": ["min","max"]} | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"signal": "width","mult": 0.5}, | ||
+ | "y": {"value": -10}, | ||
+ | "text": { | ||
+ | "template": "Distribuția echipamentelor de protecție în perioada \u007b{datum.min_data}\u007d – \u007b{datum.max_data}\u007d" | ||
+ | }, | ||
+ | "fill": {"value": "black"}, | ||
+ | "fontSize": {"value": 16}, | ||
+ | "align": {"value": "center"}, | ||
+ | "fontWeight": {"value": "bold"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | "legends": [ | ||
+ | { | ||
+ | "fill": "color", | ||
+ | "title": "Period", | ||
+ | "properties": { | ||
+ | "symbols": { | ||
+ | "strokeWidth": {"value": 0}, | ||
+ | "shape": {"value": "square"}, | ||
+ | "opacity": {"value": 0.3} | ||
+ | }, | ||
+ | "legend": { | ||
+ | "x": {"value": 10}, | ||
+ | "y": {"value": 5}, | ||
+ | "fill": {"value": "white"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </graph> | ||
+ | |||
+ | ===4=== | ||
+ | <graph> | ||
+ | { | ||
+ | "version":2, | ||
+ | "width":875, | ||
+ | "height":350, | ||
+ | //"padding": {"top":25, "left":65, "bottom":25, "right":1}, | ||
+ | "data": [ | ||
+ | { | ||
+ | "name":"table", | ||
+ | "values": [ | ||
+ | {"mdata":0, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":1, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":2, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":3, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":4, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":5, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":6, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":7, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":8, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":9, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":10, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":11, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":12, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":13, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":14, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":15, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":16, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":17, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":18, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":19, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":20, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":21, "masti":9600, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":22, "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":23, "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":24, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":25, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":26, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":27, "masti":38400, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":28, "masti":38400, "manusi":9600, "costume":29400, "viziere":0}, | ||
+ | {"mdata":29, "masti":48000, "manusi":9600, "costume":33400, "viziere":0}, | ||
+ | {"mdata":30, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":31, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":32, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":33, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":34, "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":35, "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":36, "masti":81900, "manusi":9600, "costume":48900, "viziere":0}, | ||
+ | {"mdata":37, "masti":81900, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":38, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":39, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":40, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":41, "masti":213900, "manusi":9600, "costume":56894, "viziere":0}, | ||
+ | {"mdata":42, "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":43, "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":44, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":45, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":46, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":47, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":48, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":49, "masti":237554, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":50, "masti":263954, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":51, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":52, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":53, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":54, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":55, "masti":325354, "manusi":112100, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":56, "masti":327854, "manusi":114600, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":57, "masti":345254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":58, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":59, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":60, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":61, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":62, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":63, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":64, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":65, "masti":848255, "manusi":322600, "costume":121310, "viziere":87407}, | ||
+ | {"mdata":66, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":67, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":68, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":69, "masti":891255, "manusi":333500, "costume":123530, "viziere":87557}, | ||
+ | {"mdata":70, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":71, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":72, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":73, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":74, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":75, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":76, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":77, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":78, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":79, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":80, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":81, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":82, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":83, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":84, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":85, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":86, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":87, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":88, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":89, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":90, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":91, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":92, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":93, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":94, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":95, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":96, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":97, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":98, "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":99, "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":100, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":101, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":102, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":103, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":104, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":105, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":106, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":107, "masti":1544705, "manusi":551100, "costume":209610, "viziere":121417}, | ||
+ | {"mdata":108, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":109, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":110, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":111, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":112, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":113, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":114, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":115, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":116, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":117, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":118, "masti":1785705, "manusi":595845, "costume":227900, "viziere":127417}, | ||
+ | {"mdata":119, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":120, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":121, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":122, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":123, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":124, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":125, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":126, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":127, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":128, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":129, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":130, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":131, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":132, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":133, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":134, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":135, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":136, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":137, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":138, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":139, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":140, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":141, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":142, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":143, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":144, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":145, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":146, "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":147, "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":148, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":149, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":150, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":151, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":152, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":153, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":154, "masti":2274140, "manusi":757145, "costume":307030, "viziere":140077} | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name":"annotation", | ||
+ | "values": [ | ||
+ | {"start":"0", "end":"5", "text":"Cod galben"}, | ||
+ | {"start":"5", "end":"10", "text":"Cod portocaliu"}, | ||
+ | {"start":"10", "end":"20", "text":"Cod roșu"}, | ||
+ | // {"start":"17 mar", "end":"16 mai", "text":"Stare de urgenta"}, | ||
+ | // {"start":"16 mai", "end":"4 aug", "text":"Stare de urgență în sănătate publică"}, | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "scales": [ | ||
+ | { | ||
+ | "name":"x", | ||
+ | "type":"linear", | ||
+ | "range":"width", | ||
+ | "domain": {"data":"table", "field":"mdata"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"y", | ||
+ | "type":"linear", | ||
+ | "range":"height", | ||
+ | "domain": {"data":"table", "field":"masti"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"color", | ||
+ | "type":"ordinal", | ||
+ | "domain": {"data":"annotation", "field":"text"}, | ||
+ | "range": ["#efc41d", "#fa8e3c", "#e2092a", "#800000", "#e2092a"] | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "axes": [ | ||
+ | { | ||
+ | "type":"x", | ||
+ | "scale":"x", | ||
+ | "tickSize": 5, | ||
+ | "values": [], | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#aaa"}}, | ||
+ | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}} | ||
+ | }, | ||
+ | }, | ||
+ | { | ||
+ | "type":"y", | ||
+ | "scale":"y", | ||
+ | "grid":true, | ||
+ | //"format": "d", | ||
+ | //"offset":-50, | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#d9d9d9"}}, | ||
+ | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}}, | ||
+ | //"grid": {"stroke": {"value":"#333"}, "strokeWidth": {"value":1}}, | ||
+ | } | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "marks": [ | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"annotation"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":0}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"signal":"height"}, | ||
+ | "fill": {"scale":"color", "field":"text"}, | ||
+ | "opacity": {"value":0.2} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"manusi"}, | ||
+ | "stroke": {"value":"#5b97dd"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"costume"}, | ||
+ | "stroke": {"value":"#26797a"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"viziere"}, | ||
+ | "stroke": {"value":"#999"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"masti"}, | ||
+ | "stroke": {"value":"#5ab8f0"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"text", | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"signal":"width", "mult":0.5}, | ||
+ | "y": {"value": -10}, | ||
+ | "text": {"template":"Distribuția echipamentelor de protecție individuală"}, | ||
+ | "fill": {"value":"#336"}, | ||
+ | "fontSize": {"value":15}, | ||
+ | "align": {"value":"center"}, | ||
+ | "fontWeight": {"value":"bold"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "legends": [ | ||
+ | { | ||
+ | "fill":"color", | ||
+ | "properties": { | ||
+ | "symbols": { | ||
+ | "strokeWidth": {"value":0}, | ||
+ | "shape": {"value":"square"}, | ||
+ | "opacity": {"value":0.3} | ||
+ | }, | ||
+ | "legend": { | ||
+ | "x": {"value":1}, | ||
+ | "y": {"value":1}, | ||
+ | "fill": {"value":"transparent"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </graph> | ||
+ | |||
+ | ===5=== | ||
+ | <graph> | ||
+ | { | ||
+ | "version":2, | ||
+ | "width":875, | ||
+ | "height":350, | ||
+ | //"padding": {"top":25, "left":65, "bottom":25, "right":1}, | ||
+ | "data": [ | ||
+ | { | ||
+ | "name":"table", | ||
+ | "values": [ | ||
+ | {"mdata":0, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":1, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":2, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":3, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":4, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":5, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":6, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":7, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":8, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":9, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":10, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":11, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":12, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":13, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":14, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":15, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":16, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":17, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":18, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":19, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":20, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":21, "masti":9600, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":22, "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":23, "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":24, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":25, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":26, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":27, "masti":38400, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":28, "masti":38400, "manusi":9600, "costume":29400, "viziere":0}, | ||
+ | {"mdata":29, "masti":48000, "manusi":9600, "costume":33400, "viziere":0}, | ||
+ | {"mdata":30, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":31, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":32, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":33, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":34, "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":35, "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":36, "masti":81900, "manusi":9600, "costume":48900, "viziere":0}, | ||
+ | {"mdata":37, "masti":81900, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":38, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":39, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":40, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":41, "masti":213900, "manusi":9600, "costume":56894, "viziere":0}, | ||
+ | {"mdata":42, "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":43, "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":44, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":45, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":46, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":47, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":48, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":49, "masti":237554, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":50, "masti":263954, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":51, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":52, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":53, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":54, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":55, "masti":325354, "manusi":112100, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":56, "masti":327854, "manusi":114600, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":57, "masti":345254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":58, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":59, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":60, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":61, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":62, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":63, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":64, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":65, "masti":848255, "manusi":322600, "costume":121310, "viziere":87407}, | ||
+ | {"mdata":66, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":67, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":68, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":69, "masti":891255, "manusi":333500, "costume":123530, "viziere":87557}, | ||
+ | {"mdata":70, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":71, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":72, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":73, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":74, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":75, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":76, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":77, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":78, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":79, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":80, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":81, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":82, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":83, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":84, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":85, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":86, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":87, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":88, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":89, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":90, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":91, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":92, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":93, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":94, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":95, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":96, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":97, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":98, "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":99, "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":100, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":101, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":102, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":103, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":104, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":105, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":106, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":107, "masti":1544705, "manusi":551100, "costume":209610, "viziere":121417}, | ||
+ | {"mdata":108, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":109, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":110, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":111, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":112, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":113, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":114, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":115, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":116, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":117, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":118, "masti":1785705, "manusi":595845, "costume":227900, "viziere":127417}, | ||
+ | {"mdata":119, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":120, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":121, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":122, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":123, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":124, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":125, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":126, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":127, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":128, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":129, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":130, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":131, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":132, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":133, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":134, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":135, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":136, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":137, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":138, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":139, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":140, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":141, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":142, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":143, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":144, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":145, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":146, "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":147, "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":148, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":149, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":150, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":151, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":152, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":153, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":154, "masti":2274140, "manusi":757145, "costume":307030, "viziere":140077} | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name":"annotation", | ||
+ | "values": [ | ||
+ | {"start":"0", "end":"5", "text":"Cod galben"}, | ||
+ | {"start":"5", "end":"10", "text":"Cod portocaliu"}, | ||
+ | {"start":"10", "end":"14", "text":"Cod roșu"}, | ||
+ | {"start":"14", "end":"74", "text":"Stare de urgenta"}, | ||
+ | {"start":"74", "end":"154", "text":"Stare de urgență în sănătate publică"}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name": "visdates", | ||
+ | "values": [ | ||
+ | {"name":"3 martie", "pos":"0"}, | ||
+ | {"name":"10 aprilie", "pos":"33"}, | ||
+ | {"name":"7 mai", "pos":"62"}, | ||
+ | // {"name":"2 iunie", "pos":"88"}, | ||
+ | {"name":"4 august", "pos":"146"} | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "scales": [ | ||
+ | { | ||
+ | "name":"x", | ||
+ | "type":"linear", | ||
+ | "range":"width", | ||
+ | "domain": {"data":"table", "field":"mdata"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"y", | ||
+ | "type":"linear", | ||
+ | "range":"height", | ||
+ | "domain": {"data":"table", "field":"masti"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"color", | ||
+ | "type":"ordinal", | ||
+ | "domain": {"data":"annotation", "field":"text"}, | ||
+ | "range": ["#efc41d", "#fa8e3c", "#e2092a", "#800000", "#e2092a"] | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "axes": [ | ||
+ | { | ||
+ | "type":"x", | ||
+ | "scale":"x", | ||
+ | "tickSize": 5, | ||
+ | "values": [], | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#aaa"}}, | ||
+ | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}} | ||
+ | }, | ||
+ | }, | ||
+ | { | ||
+ | "type":"y", | ||
+ | "scale":"y", | ||
+ | "grid":true, | ||
+ | //"format": "d", | ||
+ | //"offset":-50, | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#d9d9d9"}}, | ||
+ | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}}, | ||
+ | //"grid": {"stroke": {"value":"#333"}, "strokeWidth": {"value":1}}, | ||
+ | } | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "marks": [ | ||
+ | { | ||
+ | "type": "text", | ||
+ | "from": {"data":"visdates"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"pos"}, | ||
+ | "y": {"value": 368}, | ||
+ | "fill": {"value":"#666"}, | ||
+ | "text": {"field":"name"}, | ||
+ | "fontSize": {"value":12} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"annotation"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":0}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"signal":"height"}, | ||
+ | "fill": {"scale":"color", "field":"text"}, | ||
+ | "opacity": {"value":0.2} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"manusi"}, | ||
+ | "stroke": {"value":"#5b97dd"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"costume"}, | ||
+ | "stroke": {"value":"#26797a"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"viziere"}, | ||
+ | "stroke": {"value":"#999"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"masti"}, | ||
+ | "stroke": {"value":"#5ab8f0"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"text", | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"signal":"width", "mult":0.5}, | ||
+ | "y": {"value": -10}, | ||
+ | "text": {"template":"Distribuția echipamentelor de protecție individuală"}, | ||
+ | "fill": {"value":"#336"}, | ||
+ | "fontSize": {"value":15}, | ||
+ | "align": {"value":"center"}, | ||
+ | "fontWeight": {"value":"bold"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "legends": [ | ||
+ | { | ||
+ | "fill":"color", | ||
+ | "properties": { | ||
+ | "symbols": { | ||
+ | "strokeWidth": {"value":0}, | ||
+ | "shape": {"value":"square"}, | ||
+ | "opacity": {"value":0.3} | ||
+ | }, | ||
+ | "legend": { | ||
+ | "x": {"value":1}, | ||
+ | "y": {"value":1}, | ||
+ | "fill": {"value":"transparent"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </graph> | ||
+ | |||
+ | ===6=== | ||
+ | <graph> | ||
+ | { | ||
+ | "version":2, | ||
+ | "width":875, | ||
+ | "height":350, | ||
+ | //"padding": {"top":25, "left":65, "bottom":25, "right":1}, | ||
+ | "data": [ | ||
+ | { | ||
+ | "name":"table", | ||
+ | "values": [ | ||
+ | {"mdata":0, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":1, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":2, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":3, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":4, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":5, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":6, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":7, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":8, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":9, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":10, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":11, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":12, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":13, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":14, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":15, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":16, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":17, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":18, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":19, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":20, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":21, "masti":9600, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":22, "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":23, "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":24, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":25, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":26, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":27, "masti":38400, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":28, "masti":38400, "manusi":9600, "costume":29400, "viziere":0}, | ||
+ | {"mdata":29, "masti":48000, "manusi":9600, "costume":33400, "viziere":0}, | ||
+ | {"mdata":30, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":31, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":32, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":33, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":34, "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":35, "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":36, "masti":81900, "manusi":9600, "costume":48900, "viziere":0}, | ||
+ | {"mdata":37, "masti":81900, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":38, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":39, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":40, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":41, "masti":213900, "manusi":9600, "costume":56894, "viziere":0}, | ||
+ | {"mdata":42, "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":43, "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":44, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":45, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":46, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":47, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":48, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":49, "masti":237554, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":50, "masti":263954, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":51, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":52, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":53, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":54, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":55, "masti":325354, "manusi":112100, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":56, "masti":327854, "manusi":114600, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":57, "masti":345254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":58, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":59, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":60, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":61, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":62, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":63, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":64, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":65, "masti":848255, "manusi":322600, "costume":121310, "viziere":87407}, | ||
+ | {"mdata":66, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":67, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":68, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":69, "masti":891255, "manusi":333500, "costume":123530, "viziere":87557}, | ||
+ | {"mdata":70, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":71, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":72, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":73, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":74, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":75, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":76, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":77, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":78, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":79, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":80, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":81, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":82, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":83, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":84, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":85, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":86, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":87, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":88, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":89, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":90, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":91, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":92, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":93, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":94, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":95, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":96, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":97, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":98, "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":99, "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":100, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":101, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":102, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":103, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":104, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":105, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":106, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":107, "masti":1544705, "manusi":551100, "costume":209610, "viziere":121417}, | ||
+ | {"mdata":108, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":109, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":110, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":111, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":112, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":113, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":114, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":115, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":116, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":117, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":118, "masti":1785705, "manusi":595845, "costume":227900, "viziere":127417}, | ||
+ | {"mdata":119, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":120, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":121, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":122, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":123, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":124, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":125, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":126, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":127, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":128, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":129, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":130, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":131, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":132, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":133, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":134, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":135, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":136, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":137, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":138, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":139, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":140, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":141, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":142, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":143, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":144, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":145, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":146, "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":147, "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":148, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":149, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":150, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":151, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":152, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":153, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":154, "masti":2274140, "manusi":757145, "costume":307030, "viziere":140077} | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name":"annotation", | ||
+ | "values": [ | ||
+ | //{"start":"0", "end":"5", "text":"Cod galben"}, | ||
+ | //{"start":"5", "end":"10", "text":"Cod portocaliu"}, | ||
+ | //{"start":"10", "end":"14", "text":"Cod roșu"}, | ||
+ | {"start":"14", "end":"74", "text":"Stare de urgență "}, | ||
+ | //{"start":"74", "end":"154", "text":"Stare de urgență în sănătate publică"}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name": "visdates", | ||
+ | "values": [ | ||
+ | {"name":"3 mar", "pos":"0"}, | ||
+ | {"name":"17 mar", "pos":"11"}, | ||
+ | {"name":"15 mai", "pos":"70"}, | ||
+ | // {"name":"2 iunie", "pos":"88"}, | ||
+ | {"name":"4 aug", "pos":"148"} | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "scales": [ | ||
+ | { | ||
+ | "name":"x", | ||
+ | "type":"linear", | ||
+ | "range":"width", | ||
+ | "domain": {"data":"table", "field":"mdata"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"y", | ||
+ | "type":"linear", | ||
+ | "range":"height", | ||
+ | "domain": {"data":"table", "field":"masti"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"color", | ||
+ | "type":"ordinal", | ||
+ | "domain": {"data":"annotation", "field":"text"}, | ||
+ | "range": ["#c00", "#fcccbc", "#f3c2c5", "#e395a5", "#f3c2c5"] | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "axes": [ | ||
+ | { | ||
+ | "type":"x", | ||
+ | "scale":"x", | ||
+ | "tickSize": 5, | ||
+ | "values": [], | ||
+ | "properties": | ||
+ | { | ||
+ | //"ticks": {"stroke": {"value":"#aaa"}}, | ||
+ | //"labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}}, | ||
+ | }, | ||
+ | }, | ||
+ | { | ||
+ | "type":"y", | ||
+ | "scale":"y", | ||
+ | "grid":true, | ||
+ | "layer": "front", | ||
+ | //"format": "d", | ||
+ | //"offset":-50, | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#d9d9d9"}}, | ||
+ | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}}, | ||
+ | "grid": {"stroke": {"value":"#999"}, "strokeWidth": {"value":1}}, | ||
+ | } | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "marks": [ | ||
+ | { | ||
+ | "type": "text", | ||
+ | "from": {"data":"visdates"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"pos"}, | ||
+ | "y": {"value": 368}, | ||
+ | "fill": {"value":"#666"}, | ||
+ | "text": {"field":"name"}, | ||
+ | "fontSize": {"value":12} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"annotation"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":0}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"signal":"height"}, | ||
+ | "fill": {"scale":"color", "field":"text"}, | ||
+ | "opacity": {"value":0.1} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"manusi"}, | ||
+ | "stroke": {"value":"#5b97dd"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"costume"}, | ||
+ | "stroke": {"value":"#26797a"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"viziere"}, | ||
+ | "stroke": {"value":"#999"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"masti"}, | ||
+ | "stroke": {"value":"#5ab8f0"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"text", | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"signal":"width", "mult":0.5}, | ||
+ | "y": {"value": -10}, | ||
+ | "text": {"template":"Distribuția echipamentelor de protecție individuală"}, | ||
+ | "fill": {"value":"#336"}, | ||
+ | "fontSize": {"value":15}, | ||
+ | "align": {"value":"center"}, | ||
+ | "fontWeight": {"value":"bold"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "legends": [ | ||
+ | { | ||
+ | "fill":"color", | ||
+ | "properties": { | ||
+ | "symbols": { | ||
+ | "strokeWidth": {"value":0}, | ||
+ | //"shape": {"value":"square"}, | ||
+ | "opacity": {"value":0} | ||
+ | }, | ||
+ | "legend": { | ||
+ | "x": {"value":180}, | ||
+ | "y": {"value":5}, | ||
+ | //"fill": {"value":"#ffcccc"}, | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </graph> | ||
+ | |||
+ | ===7=== | ||
+ | <graph> | ||
+ | { | ||
+ | "version":2, | ||
+ | "width":875, | ||
+ | "height":350, | ||
+ | //"padding": {"top":25, "left":65, "bottom":25, "right":1}, | ||
+ | "data": [ | ||
+ | { | ||
+ | "name":"table", | ||
+ | "values": [ | ||
+ | {"mdata":0, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":1, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":2, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":3, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":4, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":5, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":6, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":7, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":8, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":9, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":10, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":11, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":12, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":13, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":14, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":15, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":16, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":17, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":18, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":19, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":20, "masti":0, "manusi":0, "costume":25000, "viziere":0}, | ||
+ | {"mdata":21, "masti":9600, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":22, "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":23, "masti":19200, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":24, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":25, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":26, "masti":28800, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":27, "masti":38400, "manusi":9600, "costume":25000, "viziere":0}, | ||
+ | {"mdata":28, "masti":38400, "manusi":9600, "costume":29400, "viziere":0}, | ||
+ | {"mdata":29, "masti":48000, "manusi":9600, "costume":33400, "viziere":0}, | ||
+ | {"mdata":30, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":31, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":32, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":33, "masti":57600, "manusi":9600, "costume":34400, "viziere":0}, | ||
+ | {"mdata":34, "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":35, "masti":67500, "manusi":9600, "costume":45300, "viziere":0}, | ||
+ | {"mdata":36, "masti":81900, "manusi":9600, "costume":48900, "viziere":0}, | ||
+ | {"mdata":37, "masti":81900, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":38, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":39, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":40, "masti":197100, "manusi":9600, "costume":52094, "viziere":0}, | ||
+ | {"mdata":41, "masti":213900, "manusi":9600, "costume":56894, "viziere":0}, | ||
+ | {"mdata":42, "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":43, "masti":216400, "manusi":10600, "costume":63810, "viziere":1535}, | ||
+ | {"mdata":44, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":45, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":46, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":47, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":48, "masti":233800, "manusi":10600, "costume":72960, "viziere":3545}, | ||
+ | {"mdata":49, "masti":237554, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":50, "masti":263954, "manusi":10600, "costume":79660, "viziere":3685}, | ||
+ | {"mdata":51, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":52, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":53, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":54, "masti":282554, "manusi":10600, "costume":80860, "viziere":3685}, | ||
+ | {"mdata":55, "masti":325354, "manusi":112100, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":56, "masti":327854, "manusi":114600, "costume":82910, "viziere":44685}, | ||
+ | {"mdata":57, "masti":345254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":58, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":59, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":60, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":61, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":62, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":63, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":64, "masti":348254, "manusi":122600, "costume":96310, "viziere":77505}, | ||
+ | {"mdata":65, "masti":848255, "manusi":322600, "costume":121310, "viziere":87407}, | ||
+ | {"mdata":66, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":67, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":68, "masti":863455, "manusi":322600, "costume":123330, "viziere":87407}, | ||
+ | {"mdata":69, "masti":891255, "manusi":333500, "costume":123530, "viziere":87557}, | ||
+ | {"mdata":70, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":71, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":72, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":73, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":74, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":75, "masti":901255, "manusi":343500, "costume":126530, "viziere":88057}, | ||
+ | {"mdata":76, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":77, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":78, "masti":958255, "manusi":387800, "costume":129980, "viziere":93417}, | ||
+ | {"mdata":79, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":80, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":81, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":82, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":83, "masti":1017605, "manusi":417100, "costume":137580, "viziere":100217}, | ||
+ | {"mdata":84, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":85, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":86, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":87, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":88, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":89, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":90, "masti":1068205, "manusi":486100, "costume":152480, "viziere":100717}, | ||
+ | {"mdata":91, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":92, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":93, "masti":1324205, "manusi":496100, "costume":182140, "viziere":121217}, | ||
+ | {"mdata":94, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":95, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":96, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":97, "masti":1352205, "manusi":507100, "costume":191640, "viziere":121417}, | ||
+ | {"mdata":98, "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":99, "masti":1368205, "manusi":519600, "costume":193610, "viziere":121417}, | ||
+ | {"mdata":100, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":101, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":102, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":103, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":104, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":105, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":106, "masti":1427405, "manusi":551100, "costume":204430, "viziere":121417}, | ||
+ | {"mdata":107, "masti":1544705, "manusi":551100, "costume":209610, "viziere":121417}, | ||
+ | {"mdata":108, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":109, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":110, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":111, "masti":1628705, "manusi":551100, "costume":224810, "viziere":126617}, | ||
+ | {"mdata":112, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":113, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":114, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":115, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":116, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":117, "masti":1714705, "manusi":595100, "costume":227900, "viziere":126617}, | ||
+ | {"mdata":118, "masti":1785705, "manusi":595845, "costume":227900, "viziere":127417}, | ||
+ | {"mdata":119, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":120, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":121, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":122, "masti":1810705, "manusi":641845, "costume":230680, "viziere":129717}, | ||
+ | {"mdata":123, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":124, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":125, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":126, "masti":1897205, "manusi":641845, "costume":245480, "viziere":134717}, | ||
+ | {"mdata":127, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":128, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":129, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":130, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":131, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":132, "masti":1965005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":133, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":134, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":135, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":136, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":137, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":138, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":139, "masti":2130005, "manusi":685145, "costume":249680, "viziere":136217}, | ||
+ | {"mdata":140, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":141, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":142, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":143, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":144, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":145, "masti":2171940, "manusi":685145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":146, "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":147, "masti":2193140, "manusi":757145, "costume":263530, "viziere":137217}, | ||
+ | {"mdata":148, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":149, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":150, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":151, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":152, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":153, "masti":2234140, "manusi":757145, "costume":273830, "viziere":139817}, | ||
+ | {"mdata":154, "masti":2274140, "manusi":757145, "costume":307030, "viziere":140077} | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name":"annotation", | ||
+ | "values": [ | ||
+ | //{"start":"0", "end":"5", "text":"Cod galben"}, | ||
+ | //{"start":"5", "end":"10", "text":"Cod portocaliu"}, | ||
+ | //{"start":"10", "end":"14", "text":"Cod roșu"}, | ||
+ | {"start":"14", "end":"74", "text":"Stare de urgență "}, | ||
+ | //{"start":"74", "end":"154", "text":"Stare de urgență în sănătate publică"}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name": "visdates", | ||
+ | "values": [ | ||
+ | {"name":"3 martie", "pos":"0"}, | ||
+ | {"name":"17 martie", "pos":"10"}, | ||
+ | {"name":"15 mai", "pos":"70"}, | ||
+ | // {"name":"2 iunie", "pos":"88"}, | ||
+ | {"name":"4 august", "pos":"146"} | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "scales": [ | ||
+ | { | ||
+ | "name":"x", | ||
+ | "type":"linear", | ||
+ | "range":"width", | ||
+ | "domain": {"data":"table", "field":"mdata"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"y", | ||
+ | "type":"linear", | ||
+ | "range":"height", | ||
+ | "domain": {"data":"table", "field":"masti"} | ||
+ | }, | ||
+ | { | ||
+ | "name":"color", | ||
+ | "type":"ordinal", | ||
+ | "domain": {"data":"annotation", "field":"text"}, | ||
+ | "range": ["#c00", "#fcccbc", "#f3c2c5", "#e395a5", "#f3c2c5"] | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "axes": [ | ||
+ | { | ||
+ | "type":"x", | ||
+ | "scale":"x", | ||
+ | //"tickSize": 5, | ||
+ | //"ticks": 20, | ||
+ | "values": [21, 22, 24, 27, 28, 29, 30, 34, 36, 37, 38, 41, 42, 44, 49, 50, 51, 55, 56, 57, 58, 65, 66, 69, 70, 76, 79, 84, 91, 94, 98, 100, 107, 108, 112, 118, 119, 123, 127, 133, 140, 146, 148], | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#aaa"}}, | ||
+ | "labels": {"fill": {"value":"#fff"}, "fontSize": {"value":1}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}}, | ||
+ | }, | ||
+ | }, | ||
+ | { | ||
+ | "type":"y", | ||
+ | "scale":"y", | ||
+ | "grid":true, | ||
+ | "layer": "front", | ||
+ | //"format": "d", | ||
+ | //"offset":-50, | ||
+ | "properties": | ||
+ | { | ||
+ | "ticks": {"stroke": {"value":"#d9d9d9"}}, | ||
+ | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
+ | "axis": {"stroke": {"value":"#ccc"}}, | ||
+ | "grid": {"stroke": {"value":"#999"}, "strokeWidth": {"value":1}}, | ||
+ | } | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "marks": [ | ||
+ | { | ||
+ | "type": "text", | ||
+ | "from": {"data":"visdates"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"pos"}, | ||
+ | "y": {"value": 368}, | ||
+ | "fill": {"value":"#666"}, | ||
+ | "text": {"field":"name"}, | ||
+ | "fontSize": {"value":12} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"annotation"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":0}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"signal":"height"}, | ||
+ | "fill": {"scale":"color", "field":"text"}, | ||
+ | "opacity": {"value":0.1} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"manusi"}, | ||
+ | "stroke": {"value":"#5b97dd"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"costume"}, | ||
+ | "stroke": {"value":"#26797a"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"viziere"}, | ||
+ | "stroke": {"value":"#999"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"line", | ||
+ | "from": {"data":"table"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"mdata"}, | ||
+ | "y": {"scale":"y", "field":"masti"}, | ||
+ | "stroke": {"value":"#5ab8f0"}, | ||
+ | "strokeWidth": {"value":2}, | ||
+ | "interpolate": {"value":"step-after"} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"text", | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"signal":"width", "mult":0.5}, | ||
+ | "y": {"value": -10}, | ||
+ | "text": {"template":"Distribuția echipamentelor de protecție individuală"}, | ||
+ | "fill": {"value":"#336"}, | ||
+ | "fontSize": {"value":15}, | ||
+ | "align": {"value":"center"}, | ||
+ | "fontWeight": {"value":"bold"} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | // | ||
+ | "legends": [ | ||
+ | { | ||
+ | "fill":"color", | ||
+ | "properties": { | ||
+ | "symbols": { | ||
+ | "strokeWidth": {"value":0}, | ||
+ | //"shape": {"value":"square"}, | ||
+ | "opacity": {"value":0} | ||
+ | }, | ||
+ | "legend": { | ||
+ | "x": {"value":180}, | ||
+ | "y": {"value":5}, | ||
+ | //"fill": {"value":"#ffcccc"}, | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </graph> |