Format: Covid/Med/Echipament/Graf: Diferență între versiuni

De la alegeri.md
Salt la: navigare, căutare
(1)
(1)
Linia 1: Linia 1:
 
===1===
 
===1===
<div  style="border:1px solid #ccc">
+
<div  style="border1:1px solid #ccc">
 
<graph>
 
<graph>
 
{
 
{
 
"version":2,
 
"version":2,
"width":880,
+
"width":875,
 
"height":350,
 
"height":350,
"padding": {"top":25, "left":50, "bottom":35, "right":16},
+
"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": [
+
"scales": [
    {
+
{
      "name": "x",
+
"name":"x",
      "type": "ordinal",
+
"type":"ordinal",
      "range": "width",
+
"range":"width",
      "zero": false,
+
"domain": {"data":"table", "field":"mdata"}
      "domain": {"data":"table", "field": "mdata"}
+
},
    },
+
{
    {
+
"name":"y",
      "name": "y",
+
"type":"linear",
      "type": "linear",
+
"range":"height",
      "range": "height",
+
//"nice":true,
      // "nice": true,
+
"domain": {"data":"table", "field":"masti"}
      "domain": {"data": "table","field": "masti"}
+
},
    },
+
{
    {
+
"name":"color",
      "name": "color",
+
"type":"ordinal",
      "type": "ordinal",
+
"domain": {"data":"annotation", "field":"text"},
      "domain": {"data": "annotation","field": "text"},
+
"range": ["#efc41d", "#fa8e3c", "#e2092a", "#800000", "#e2092a"]
      "range": ["#efc41d","#fa8e3c","#e2092a","#800000","#e2092a"]
+
}
    }
+
],
  ],
+
//
  "axes": [
+
"axes": [
    {
+
{
      "type": "x",
+
"type":"x",
      "scale": "x",
+
"scale":"x",
      // "format": "d",
+
"values": ["3 martie", "17 martie", "15 mai", "15 iunie", "1 iulie", "4 august"],
      "title": "Data",
+
"properties":
      // "ticks": 5,
+
{
"values": ["3 martie", "1 aprilie", "1 mai", "1 iunie", "1 iulie", "4 august"],
+
"ticks": {"stroke": {"value":"#aaa"}},
    },
+
"labels": {"fill": {"value":"#666"}, "fontSize": {"value":12}},
    {
+
"axis": {"stroke": {"value":"#ccc"}}
      "type": "y",
+
}
      "scale": "y",
+
},
      "title": "Number",
+
{
      "grid": true,
+
"type":"y",
//       "layer": "back"
+
"scale":"y",
    },
+
"grid":true,
  ],
+
"properties":
  "marks": [
+
{
 +
"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


3