Format: Covid/Med/Doze: Diferență între versiuni
De la alegeri.md
< Format:Covid | Med
Oleg (Discuție | contribuții) |
Oleg (Discuție | contribuții) |
||
Linia 260: | Linia 260: | ||
{"name":"10 octombrie 2021", "pos":"198.5"}, | {"name":"10 octombrie 2021", "pos":"198.5"}, | ||
] | ] | ||
− | } | + | }, |
+ | { | ||
+ | "name":"events", | ||
+ | "values": [ | ||
+ | {"start":"14", "end":"14.1", "starty":"38000", "text":"Sinopharm"}, | ||
+ | {"start":"57", "end":"57.1", "starty":"363970", "text":"Sputnik-V"}, | ||
+ | {"start":"135", "end":"135.1", "starty":"1248090", "text":"Janssen"}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name":"events2", | ||
+ | "values": [ | ||
+ | {"start":"0", "end":"0", "starty":"0", "text":"AstraZeneca"}, | ||
+ | {"start":"23", "end":"23.1", "starty":"62570", "text":"Pfizer"}, | ||
+ | {"start":"59", "end":"59.1", "starty":"613970", "text":"Sinovac"}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name": "eventst", | ||
+ | "values": [ | ||
+ | {"name":"Sinopharm", "posx":"15"}, | ||
+ | {"name":"Sputnik-V", "posx":"58"}, | ||
+ | {"name":"Janssen", "posx":"136"}, | ||
+ | ] | ||
+ | }, | ||
+ | { | ||
+ | "name": "eventst2", | ||
+ | "values": [ | ||
+ | {"name":"AstraZeneca", "posx":"1"}, | ||
+ | {"name":"Pfizer", "posx":"24"}, | ||
+ | {"name":"Sinovac", "posx":"60"}, | ||
+ | ] | ||
+ | }, | ||
], | ], | ||
// | // | ||
Linia 293: | Linia 325: | ||
"range":"height", | "range":"height", | ||
"domain": {"data":"table", "field":"dozerec"} | "domain": {"data":"table", "field":"dozerec"} | ||
− | } | + | }, |
+ | { | ||
+ | "name":"colorg", | ||
+ | "type":"ordinal", | ||
+ | "domain": {"data":"events", "field":"text"}, | ||
+ | "range": ["#cccccc"] | ||
+ | }, | ||
], | ], | ||
// | // | ||
Linia 380: | Linia 418: | ||
} | } | ||
}, | }, | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"events"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":35}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"scale":"y", "field":"starty"}, | ||
+ | "fill": {"scale":"colorg", "field":"text"}, | ||
+ | //"opacity": {"value":0.1} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type":"rect", | ||
+ | "from": {"data":"events2"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"start"}, | ||
+ | "y": {"value":65}, | ||
+ | "x2": {"scale":"x", "field":"end"}, | ||
+ | "y2": {"scale":"y", "field":"starty"}, | ||
+ | "fill": {"scale":"colorg", "field":"text"}, | ||
+ | //"opacity": {"value":0.1} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "text", | ||
+ | "from": {"data":"eventst"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"posx"}, | ||
+ | "y": {"value":38}, | ||
+ | "fill": {"value":"#bbb"}, | ||
+ | "text": {"field":"name"}, | ||
+ | "fontSize": {"value":12} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "text", | ||
+ | "from": {"data":"eventst2"}, | ||
+ | "properties": { | ||
+ | "enter": { | ||
+ | "x": {"scale":"x", "field":"posx"}, | ||
+ | "y": {"value":68}, | ||
+ | "fill": {"value":"#bbb"}, | ||
+ | "text": {"field":"name"}, | ||
+ | "fontSize": {"value":12} | ||
+ | } | ||
+ | } | ||
+ | }, | ||
{ | { | ||
"type": "text", | "type": "text", |