Format: Diaspora/Graf: Diferență între versiuni
De la alegeri.md
Oleg (Discuție | contribuții) |
Oleg (Discuție | contribuții) |
||
Linia 51: | Linia 51: | ||
"range": "width", | "range": "width", | ||
//"width": {"value":10}, | //"width": {"value":10}, | ||
− | + | padding": 0.7, | |
// "round": true, | // "round": true, | ||
"domain": {"data": "table", "field": "year"} | "domain": {"data": "table", "field": "year"} | ||
Linia 96: | Linia 96: | ||
"labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}}, | "labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}}, | ||
"axis": {"stroke": {"value": "#ccc"}}, | "axis": {"stroke": {"value": "#ccc"}}, | ||
− | "title": {"fill": {"value":"#336"}, "fontSize": {"value":12}, "fontWeight": {"value":"italic"}} | + | "title": {"fill": {"value":"#336"}, "fontSize": {"value":12}, "fontWeight": {"value":"italic"}} |
} | } | ||
}, | }, | ||
Linia 108: | Linia 108: | ||
"ticks": {"stroke": {"value": "#d9d9d9"}}, | "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"}}, |
+ | "title": {"fill": {"value":"#336"}, "fontSize": {"value":12}, "fontWeight": {"value":"italic"}} | ||
} | } | ||
} | } | ||
Linia 120: | Linia 121: | ||
"enter": { | "enter": { | ||
"x": {"scale": "x", "field": "year"}, | "x": {"scale": "x", "field": "year"}, | ||
− | "width": {"scale": "x", "band": | + | "width": {"scale": "x", "band":true, "offset": -10, "value":20}, |
"y": {"scale": "y", "field": "stations"}, | "y": {"scale": "y", "field": "stations"}, | ||
"y2": {"scale": "y", "value": 0}, | "y2": {"scale": "y", "value": 0}, |
Versiunea de la data 12 august 2020 16:45
Eroare de sintaxă