Carton Rapid Race: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
rimosso errore dalla pagina, da rifare eventualmente con Extension:Graph
Iron Bishop (discussione | contributi)
implementato il grafico con la nuova modalità
Riga 66:
|}
 
<graph>
<!--
{
{{ #invoke: Grafico | bar chart
"width": 800,
| height = 300
"height": 600,
| width = 700
"padding": {"top": 10, "left": 30, "bottom": 30, "right": 10},
| group 1 = 1 : 20 : 23 : 13 : 30 : 50 : 59 : 112 : 1 : 139 : 142 : 167 : 226 : 225 : 249 : 249 : 291 : 313 : 311 : 301 : 320 : 323 : 358 : 405
"data": [
| group 2 = 2 : 6 : 19 : 9 : 23 : 33 : 30 : 50 : 2 : 29 : 38 : 61 : 56 : 72 : 68 : 113 : 85 : 170 : 172 : 148 : 167 : 115 : 157 : 166
{
| colors = yellow : green
"name": "table",
| group names = Imbarcazioni partite : Arrivate
"values": [
| x legends = : 1992 : : 1994 : : 1996 : : 1998 : : 2000 : : 2002 : : 2004 : : 2006 : : 2008 : : 2010 : : 2012 : : 2014
{"x": "1991", "y": 1, "c":0}, {"x": "1991", "y": 1, "c":1},
}}
{"x": "1992", "y": 6, "c":0}, {"x": "1992", "y": 14, "c":1},
-->
{"x": "1993", "y": 19, "c":0}, {"x": "1993", "y": 4, "c":1},
{"x": "1994", "y": 9, "c":0}, {"x": "1994", "y": 4, "c":1},
{"x": "1995", "y": 23, "c":0}, {"x": "1995", "y": 7, "c":1},
{"x": "1996", "y": 33, "c":0}, {"x": "1996", "y": 17, "c":1},
{"x": "1997", "y": 30, "c":0}, {"x": "1997", "y": 29, "c":1},
{"x": "1998", "y": 50, "c":0}, {"x": "1998", "y": 62, "c":1},
{"x": "1999", "y": 1, "c":0}, {"x": "1999", "y": 1, "c":1},
{"x": "2000", "y": 29, "c":0}, {"x": "2000", "y": 110, "c":1},
{"x": "2001", "y": 38, "c":0}, {"x": "2001", "y": 104, "c":1},
{"x": "2002", "y": 61, "c":0}, {"x": "2002", "y": 106, "c":1},
{"x": "2003", "y": 56, "c":0}, {"x": "2003", "y": 170, "c":1},
{"x": "2004", "y": 72, "c":0}, {"x": "2004", "y": 153, "c":1},
{"x": "2005", "y": 68, "c":0}, {"x": "2005", "y": 181, "c":1},
{"x": "2006", "y": 113, "c":0}, {"x": "2006", "y": 136, "c":1},
{"x": "2007", "y": 85, "c":0}, {"x": "2007", "y": 206, "c":1},
{"x": "2008", "y": 170, "c":0}, {"x": "2008", "y": 143, "c":1},
{"x": "2009", "y": 172, "c":0}, {"x": "2009", "y": 139, "c":1},
{"x": "2010", "y": 148, "c":0}, {"x": "2010", "y": 153, "c":1},
{"x": "2011", "y": 167, "c":0}, {"x": "2011", "y": 153, "c":1},
{"x": "2012", "y": 115, "c":0}, {"x": "2012", "y": 208, "c":1},
{"x": "2013", "y": 157, "c":0}, {"x": "2013", "y": 201, "c":1},
{"x": "2014", "y": 167, "c":0}, {"x": "2014", "y": 238, "c":1}
 
]
},
{
"name": "stats",
"source": "table",
"transform": [
{"type": "facet", "keys": ["data.x"]},
{"type": "stats", "value": "data.y"}
]
}
],
"scales": [
{
"name": "x",
"type": "ordinal",
"range": "width",
"domain": {"data": "table", "field": "data.x"}
},
{
"name": "y",
"type": "linear",
"range": "height",
"nice": true,
"domain": {"data": "stats", "field": "sum"}
},
{
"name": "color",
"type": "ordinal",
"range": "category10"
}
],
"axes": [
{"type": "x", "scale": "x", "properties": {
"labels": {
"angle": {
"value": -30
},
"align": {
"value": "right"
}
} } },
{"type": "y", "scale": "y"}
],
"marks": [
{
"type": "group",
"from": {
"data": "table",
"transform": [
{"type": "facet", "keys": ["data.c"]},
{"type": "stack", "point": "data.x", "height": "data.y"}
]
},
"marks": [
{
"type": "rect",
"properties": {
"enter": {
"x": {"scale": "x", "field": "data.x"},
"width": {"scale": "x", "band": true, "offset": -1},
"y": {"scale": "y", "field": "y"},
"y2": {"scale": "y", "field": "y2"},
"fill": {"scale": "color", "field": "data.c"}
},
"update": {
"fillOpacity": {"value": 1}
},
"hover": {
"fillOpacity": {"value": 0.5}
}
}
}
]
}
]
}
</graph>
 
==Premiazione==