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. | + | "padding": 0.74, |
// "round": true, | // "round": true, | ||
"domain": {"data": "table", "field": "year"} | "domain": {"data": "table", "field": "year"} | ||
Linia 121: | Linia 121: | ||
"enter": { | "enter": { | ||
"x": {"scale": "x", "field": "year"}, | "x": {"scale": "x", "field": "year"}, | ||
− | "width": {"scale": "x", "band":true, "offset": | + | "width": {"scale": "x", "band":true, "offset":0}, |
"y": {"scale": "y", "field": "stations"}, | "y": {"scale": "y", "field": "stations"}, | ||
"y2": {"scale": "y", "value": 0}, | "y2": {"scale": "y", "value": 0}, | ||
Linia 134: | Linia 134: | ||
"properties": { | "properties": { | ||
"enter": { | "enter": { | ||
− | "x": {"scale":"x", "field":"year"}, | + | "x": {"scale":"x", "field":"year", "offset":9}, |
"y": {"scale":"y2", "field":"voters"}, | "y": {"scale":"y2", "field":"voters"}, | ||
"stroke": {"value":"#9bbb59"}, | "stroke": {"value":"#9bbb59"}, | ||
Linia 147: | Linia 147: | ||
"properties": { | "properties": { | ||
"enter": { | "enter": { | ||
− | "x": {"scale": "x","field": "year"}, | + | "x": {"scale": "x","field": "year", "offset":9}, |
"y": {"scale": "y2","field": "voters"}, | "y": {"scale": "y2","field": "voters"}, | ||
"stroke": {"value": "#9bbb59"}, | "stroke": {"value": "#9bbb59"}, |