Format: Covid/Cazuri/UTAG/2021: Diferență între versiuni
De la alegeri.md
< Format:Covid | Cazuri | UTAG
Oleg (Discuție | contribuții) |
Oleg (Discuție | contribuții) |
||
Linia 260: | Linia 260: | ||
{"mdata":199, "cazuri":26}, | {"mdata":199, "cazuri":26}, | ||
{"mdata":200, "cazuri":4}, | {"mdata":200, "cazuri":4}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name":"c1", | ||
+ | "values": [ | ||
+ | {"start":"0", "end":"15", "text":"16 mai 2021"}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name":"c2", | ||
+ | "values": [ | ||
+ | {"start":"126", "end":"200", "text":"19 septembrie 2021"}, | ||
] | ] | ||
}, | }, | ||
Linia 304: | Linia 316: | ||
//"nice": true, | //"nice": true, | ||
"domain": {"data":"table", "field":"cazuri"} | "domain": {"data":"table", "field":"cazuri"} | ||
− | } | + | }, |
+ | { | ||
+ | "name":"color", | ||
+ | "type":"ordinal", | ||
+ | "domain": {"data":"c1", "field":"text"}, | ||
+ | "range": ["#cc3333"] | ||
+ | }, | ||
+ | { | ||
+ | "name":"color", | ||
+ | "type":"ordinal", | ||
+ | "domain": {"data":"c2", "field":"text"}, | ||
+ | "range": ["#cc3333"] | ||
+ | }, | ||
], | ], | ||
// | // | ||
Linia 437: | Linia 461: | ||
} | } | ||
} | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"c1"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":300}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"value":301}, | ||
+ | "fill": {"scale":"color", "field":"text"}, | ||
+ | //"opacity": {"value":0.1} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"c2"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":300}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"value":301}, | ||
+ | "fill": {"scale":"color", "field":"text"}, | ||
+ | } | ||
} | } | ||
}, | }, |