Format: Ro: Diferență între versiuni

De la alegeri.md
Salt la: navigare, căutare
Linia 1: Linia 1:
 +
<graph>{
 +
"version": 2,
 +
"description": "A specification outline example",
 +
"height": 200,
 +
"width": 915,
 +
"padding": {"top": 10, "left": 30, "bottom": 30, "right": 0},
 +
//
 +
"data": [
 +
{
 +
"name": "table",
 +
"values": [
 +
{"x": 1, "y": 100},
 +
{"x": 2, "y": 55},
 +
{"x": 3, "y": 43},
 +
{"x": 4, "y": 91},
 +
{"x": 5, "y": 81},
 +
]
 +
}
 +
],
 +
 +
//
 +
"scales": [
 +
{
 +
"name": "x",
 +
"type": "ordinal",
 +
"range": "width",
 +
"padding": 0.5,
 +
"round": true,
 +
"domain": {
 +
"data": "table",
 +
"field": "x"
 +
}
 +
},
 +
{
 +
"name": "y",
 +
"type": "linear",
 +
"range": "height",
 +
"domain": {
 +
"data": "table",
 +
"field": "y"
 +
},
 +
"nice": true
 +
}
 +
],
 +
"axes": [
 +
{
 +
"type": "x",
 +
"scale": "x",
 +
      "labels": {        "interactive": true },
 +
 +
      "domain": {
 +
        "update": {
 +
          "stroke": {"value": "#333"},
 +
          "strokeWidth": {"value": 1.5},
 +
"domainColor": "grey"
 +
        }
 +
      }
 +
},
 +
{
 +
"type": "y",
 +
"scale": "y"
 +
}
 +
],
 +
"marks": [
 +
{
 +
"type": "rect",
 +
"from": {
 +
"data": "table"
 +
},
 +
"properties": {
 +
"enter": {
 +
"x": {
 +
"scale": "x",
 +
"field": "x"
 +
},
 +
"y": {
 +
"scale": "y",
 +
"field": "y"
 +
},
 +
"y2": {
 +
"scale": "y",
 +
"value": 0
 +
},
 +
"fill": {
 +
"value": "steelblue"
 +
},
 +
"width": {
 +
"scale": "x",
 +
"band": "true",
 +
"offset": -1
 +
}
 +
},
 +
"update": {
 +
"fill": {
 +
"value": "steelblue"
 +
}
 +
},
 +
"hover": {
 +
"fill": {
 +
"value": "red"
 +
}
 +
},
 +
 +
"properties": {
 +
        "update": {
 +
          "x": {"field": "xx"},
 +
          "y": {"field": "yy"},
 +
          "font": {"value": "Helvetica Neue"},
 +
          "fontSize": {"value": 10},
 +
          "align": {"field": "align"},
 +
          "baseline": {"value": "middle"},
 +
          "fill": {"value": "#000"},
 +
          "text": {"field": "name"},
 +
          "angle": {"field": "degrees"}
 +
        }
 +
      }
 +
 +
}
 +
}
 +
]
 +
}</graph>
 +
 +
----
 +
 +
  
 
<graph>
 
<graph>

Versiunea de la data 1 august 2020 10:12

















18293 / 201818793 / 2018147 / 2019