Format: Ro: Diferență între versiuni

De la alegeri.md
Salt la: navigare, căutare
Linia 12: Linia 12:
 
"name": "table",
 
"name": "table",
 
"values": [
 
"values": [
{"x": "7 mar", "y": 99.12},
+
{"x": "7 mar", "y": 99},
{"x": "B", "y": 55.04},
+
{"x": "B", "y": 55},
 
{"x": "C", "y": 43},
 
{"x": "C", "y": 43},
 
{"x": "D", "y": 91},
 
{"x": "D", "y": 91},
Linia 26: Linia 26:
 
"type": "ordinal",
 
"type": "ordinal",
 
"range": "width",
 
"range": "width",
"padding": 0.5,
+
"padding": 0.8,
 
"round": true,
 
"round": true,
 
"domain": {"data": "table", "field": "x"}
 
"domain": {"data": "table", "field": "x"}
Linia 46: Linia 46:
 
"properties":
 
"properties":
 
{
 
{
"ticks": {"stroke": {"value": "#999"}},
+
"ticks": {"stroke": {"value": "#aaa"}},
 
"labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}},
 
"labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}},
 
"axis": {"stroke": {"value": "#ccc"}}
 
"axis": {"stroke": {"value": "#ccc"}}
Linia 55: Linia 55:
 
"scale": "y",
 
"scale": "y",
 
// "offset": 5, // отступ от графика
 
// "offset": 5, // отступ от графика
"ticks": 5, // кол-во значений на оси y
+
// "ticks": 5, // кол-во значений на оси y
 
// "tickSize": 2,
 
// "tickSize": 2,
 
// "tickSizeEnd": 10,
 
// "tickSizeEnd": 10,
Linia 62: Linia 62:
 
"properties":
 
"properties":
 
{
 
{
"ticks": {"stroke": {"value": "#999"}},
+
"ticks": {"stroke": {"value": "#d9d9d9"}},
 
"labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}},
 
"labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}},
 
"axis": {"stroke": {"value": "#ccc"}}
 
"axis": {"stroke": {"value": "#ccc"}}
Linia 68: Linia 68:
 
}
 
}
 
],
 
],
 
+
//
 
"marks": [
 
"marks": [
{
+
{
"type": "rect",
+
"type": "rect",
"from": {
+
"from": {"data": "table"},
"data": "table"
+
"properties": {
 +
"enter": {
 +
"x": {"scale": "x", "field": "x"},
 +
"y": {"scale": "y", "field": "y"},
 +
"y2": {"scale": "y", "value": 0},
 +
"fill": {"value": "#ff8a88"},
 +
"width": {"scale": "x", "band": "true", "offset": 0}
 +
},
 +
"update": {
 +
"fill": {"value": "#ff8a88"}
 +
},
 +
"hover": {
 +
"fill": {"value": "#c33"}
 
},
 
},
"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>

Versiunea de la data 1 august 2020 15:35

















18293 / 201818793 / 2018147 / 2019