Format: Partide/Graf: Diferență între versiuni

De la alegeri.md
Salt la: navigare, căutare
 
(Nu s-au afișat 3 versiuni intermediare efectuate de același utilizator)
Linia 474: Linia 474:
 
{"mdata":359, "parties":54},
 
{"mdata":359, "parties":54},
 
{"mdata":360, "parties":54},
 
{"mdata":360, "parties":54},
{"mdata":361, "parties":54},
+
{"mdata":361, "parties":55},
{"mdata":362, "parties":54},
+
{"mdata":362, "parties":55},
{"mdata":363, "parties":54},
+
{"mdata":363, "parties":55},
 
]
 
]
 
},
 
},
Linia 843: Linia 843:
 
{"mdata":359, "parties":54},
 
{"mdata":359, "parties":54},
 
{"mdata":360, "parties":54},
 
{"mdata":360, "parties":54},
{"mdata":361, "parties":54},
+
{"mdata":361, "parties":55},
 +
{"mdata":362, "parties":55},
 
]
 
]
 
},
 
},
Linia 871: Linia 872:
 
{"name":"2021", "pos":"352"},
 
{"name":"2021", "pos":"352"},
 
       ]
 
       ]
     }
+
     },
 +
{
 +
"name":"events",
 +
"values": [
 +
{"start":"84", "end":"84.1", "starty":"47", "text":"Legea nr. 146/1998 (reînregistrarea partidelor)"},
 +
]
 +
},
 +
{
 +
"name":"events2",
 +
"values": [
 +
{"start":"0", "end":"0", "starty":"0", "text":"Legea nr. 718/1991"},
 +
{"start":"195", "end":"195.1", "starty":"28", "text":"Legea nr. 294/2007"},
 +
]
 +
},
 +
{
 +
"name": "eventst",
 +
"values": [
 +
{"name":"Legea nr. 146/1998 (reînregistrarea partidelor)", "posx":"85"},
 +
      ]
 +
    },
 +
{
 +
"name": "eventst2",
 +
"values": [
 +
{"name":"Legea nr. 718/1991", "posx":"1"},
 +
{"name":"Legea nr. 294/2007", "posx":"196"},
 +
      ]
 +
    },
 
],
 
],
 
//
 
//
Linia 917: Linia 944:
 
"domain": {"data":"apdm", "field":"text"},
 
"domain": {"data":"apdm", "field":"text"},
 
"range": ["#273173"]
 
"range": ["#273173"]
 +
},
 +
{
 +
"name":"colorg",
 +
"type":"ordinal",
 +
"domain": {"data":"events", "field":"text"},
 +
"range": ["#cccccc"]
 
},
 
},
 
],
 
],
Linia 1.004: Linia 1.037:
 
      }
 
      }
 
    },
 
    },
 +
{
 +
"type":"rect",
 +
"from": {"data":"events"},
 +
"properties": {
 +
"enter": {
 +
"x": {"scale":"x", "field":"start"},
 +
"y": {"value":15},
 +
"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":42},
 +
"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":18},
 +
"fill": {"value":"#bbb"},
 +
"text": {"field":"name"},
 +
"fontSize": {"value":12}
 +
}
 +
}
 +
},
 +
{
 +
"type": "text",
 +
"from": {"data":"eventst2"},
 +
"properties": {
 +
"enter": {
 +
"x": {"scale":"x", "field":"posx"},
 +
"y": {"value":45},
 +
"fill": {"value":"#bbb"},
 +
"text": {"field":"name"},
 +
"fontSize": {"value":12}
 +
}
 +
}
 +
},
 
     {
 
     {
 
       "type": "text",
 
       "type": "text",
Linia 1.127: Linia 1.214:
 
"x": {"signal":"width", "mult":0.5},
 
"x": {"signal":"width", "mult":0.5},
 
"y": {"value": -10},
 
"y": {"value": -10},
"text": {"template":"Evoluția partidelor politice din Republica Moldova"},
+
"text": {"template":"Evoluția partidelor politice din Republica Moldova (1991–2021)"},
 
"fill": {"value":"#336"},
 
"fill": {"value":"#336"},
 
"fontSize": {"value":15},
 
"fontSize": {"value":15},

Versiunea curentă din 5 noiembrie 2021 08:57