Format: Covid/Med/Echipament/Graf: Diferență între versiuni
De la alegeri.md
< Format:Covid | Med | Echipament
Oleg (Discuție | contribuții) (→1) |
Oleg (Discuție | contribuții) (→1) |
||
Linia 1: | Linia 1: | ||
===1=== | ===1=== | ||
− | <div style=" | + | <div style="border1:1px solid #ccc"> |
<graph> | <graph> | ||
{ | { | ||
"version":2, | "version":2, | ||
− | "width": | + | "width":875, |
"height":350, | "height":350, | ||
− | "padding": {"top":25, "left": | + | "padding": {"top":25, "left":65, "bottom":25, "right":1}, |
"data": [ | "data": [ | ||
{ | { | ||
Linia 169: | Linia 169: | ||
}, | }, | ||
{ | { | ||
− | "name": "annotation", | + | "name":"annotation", |
"values": [ | "values": [ | ||
− | {"start": "3 martie","end": "8 martie","text": "Cod galben"}, | + | {"start":"3 martie", "end":"8 martie", "text":"Cod galben"}, |
− | {"start": "8 martie","end": "13 martie","text": "Cod portocaliu"}, | + | {"start":"8 martie", "end":"13 martie", "text":"Cod portocaliu"}, |
− | {"start": "13 martie","end": "17 martie","text": "Cod roșu"}, | + | {"start":"13 martie", "end":"17 martie", "text":"Cod roșu"}, |
− | {"start": "17 martie","end": "16 mai","text": "Stare de urgenta"}, | + | {"start":"17 martie", "end":"16 mai", "text":"Stare de urgenta"}, |
− | {"start": "16 mai","end": "4 august","text": "Stare de urgență în sănătate publică"}, | + | {"start":"16 mai", "end":"4 august", "text":"Stare de urgență în sănătate publică"}, |
] | ] | ||
} | } | ||
], | ], | ||
// | // | ||
− | + | "scales": [ | |
− | + | { | |
− | + | "name":"x", | |
− | + | "type":"ordinal", | |
− | + | "range":"width", | |
− | + | "domain": {"data":"table", "field":"mdata"} | |
− | + | }, | |
− | + | { | |
− | + | "name":"y", | |
− | + | "type":"linear", | |
− | + | "range":"height", | |
− | + | //"nice":true, | |
− | + | "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", | |
− | + | "values": ["3 martie", "17 martie", "15 mai", "15 iunie", "1 iulie", "4 august"], | |
− | + | "properties": | |
− | + | { | |
− | + | "ticks": {"stroke": {"value":"#aaa"}}, | |
− | + | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | |
− | + | "axis": {"stroke": {"value":"#ccc"}} | |
− | + | } | |
− | + | }, | |
− | + | { | |
− | + | "type":"y", | |
− | + | "scale":"y", | |
− | + | "grid":true, | |
− | + | "properties": | |
− | + | { | |
+ | "ticks": {"stroke": {"value": "#d9d9d9"}}, | ||
+ | "labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}}, | ||
+ | "axis": {"stroke": {"value": "#ccc"}} | ||
+ | } | ||
+ | }, | ||
+ | ], | ||
+ | // | ||
+ | "marks": [ | ||
{ | { | ||
"type": "rect", | "type": "rect", |
Versiunea de la data 7 august 2020 15:28
1
2