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 191: | Linia 191: | ||
"type":"linear", | "type":"linear", | ||
"range":"height", | "range":"height", | ||
− | |||
"domain": {"data":"table", "field":"masti"} | "domain": {"data":"table", "field":"masti"} | ||
}, | }, | ||
Linia 199: | Linia 198: | ||
"domain": {"data":"annotation", "field":"text"}, | "domain": {"data":"annotation", "field":"text"}, | ||
"range": ["#efc41d", "#fa8e3c", "#e2092a", "#800000", "#e2092a"] | "range": ["#efc41d", "#fa8e3c", "#e2092a", "#800000", "#e2092a"] | ||
− | } | + | }, |
], | ], | ||
// | // | ||
Linia 206: | Linia 205: | ||
"type":"x", | "type":"x", | ||
"scale":"x", | "scale":"x", | ||
+ | "tickSize": 5, | ||
"values": ["3 martie", "17 martie", "15 mai", "15 iunie", "1 iulie", "4 august"], | "values": ["3 martie", "17 martie", "15 mai", "15 iunie", "1 iulie", "4 august"], | ||
"properties": | "properties": | ||
Linia 212: | Linia 212: | ||
"labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, | ||
"axis": {"stroke": {"value":"#ccc"}} | "axis": {"stroke": {"value":"#ccc"}} | ||
− | } | + | }, |
}, | }, | ||
{ | { | ||
Linia 220: | Linia 220: | ||
"properties": | "properties": | ||
{ | { | ||
− | "ticks": {"stroke": {"value": "#d9d9d9"}}, | + | "ticks": {"stroke": {"value":"#d9d9d9"}}, |
− | "labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}}, | + | "labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}}, |
− | "axis": {"stroke": {"value": "#ccc"}} | + | "axis": {"stroke": {"value":"#ccc"}}, |
+ | //"grid": {"stroke": {"value":"#333"}, "strokeWidth": {"value":1}}, | ||
} | } | ||
}, | }, | ||
Linia 228: | Linia 229: | ||
// | // | ||
"marks": [ | "marks": [ | ||
− | + | { | |
− | + | "type": "rect", | |
− | + | "from": {"data":"annotation"}, | |
− | + | "properties": { | |
− | + | "enter": { | |
"x": {"scale": "x","field": "start"}, | "x": {"scale": "x","field": "start"}, | ||
"y": {"value": 0}, | "y": {"value": 0}, |
Versiunea de la data 7 august 2020 15:57
1
2