Plr : Différence entre versions
| Ligne 1 : | Ligne 1 : | ||
| − | |||
{{#tag:graph| | {{#tag:graph| | ||
{ | { | ||
| Ligne 11 : | Ligne 10 : | ||
"name": "table", | "name": "table", | ||
"values": [ | "values": [ | ||
| − | {" | + | {"nom": "mich", "morts": 722 }, |
| − | {" | + | {"nom": "14-08", "morts": 6330 }, |
| − | {" | + | {"nom": "14-09", "morts": 6418 }, |
| − | {" | + | {"nom": "14-10", "morts": 4719 }, |
| − | {" | + | {"nom": "14-11", "morts": 9035 }, |
| − | {" | + | {"nom": "14-12", "morts": 7638 }, |
| − | {" | + | {"nom": "15-01", "morts": 6721 }, |
| − | {" | + | {"nom": "15-02", "morts": 6157 }, |
| − | {" | + | {"nom": "15-03", "morts": 4074 }, |
| − | {" | + | {"nom": "15-04", "morts": 5025 }, |
| − | {" | + | {"nom": "15-05", "morts": 5603 }, |
| − | {" | + | {"nom": "15-06", "morts": 3395 }, |
| − | {" | + | {"nom": "15-07", "morts": 6191 }, |
| − | {" | + | {"nom": "15-08", "morts": 4299 }, |
| − | {" | + | {"nom": "15-09", "morts": 2793 }, |
| − | {" | + | {"nom": "15-10", "morts": 3025 }, |
| − | {" | + | {"nom": "15-11", "morts": 4299 }, |
| − | {" | + | {"nom": "15-12", "morts": 3748 }, |
] | ] | ||
} | } | ||
| Ligne 53 : | Ligne 52 : | ||
"scales": [ | "scales": [ | ||
{ "name": "xscale", "type": "ordinal", "range": "width", | { "name": "xscale", "type": "ordinal", "range": "width", | ||
| − | "domain": {"data": "table", "field": " | + | "domain": {"data": "table", "field": "nom"} }, |
{ "name": "yscale", "type": "linear", "range": "height", "nice": true, | { "name": "yscale", "type": "linear", "range": "height", "nice": true, | ||
| − | "domain": {"data": "table", "field": " | + | "domain": {"data": "table", "field": "morts"} } |
], | ], | ||
| Ligne 69 : | Ligne 68 : | ||
"properties": { | "properties": { | ||
"enter": { | "enter": { | ||
| − | "x": {"scale": "xscale", "field": " | + | "x": {"scale": "xscale", "field": "nom"}, |
"width": {"scale": "xscale", "band": true, "offset": -1}, | "width": {"scale": "xscale", "band": true, "offset": -1}, | ||
| − | "y": {"scale": "yscale", "field": " | + | "y": {"scale": "yscale", "field": "morts"}, |
"y2": {"field": {"group": "height"} } | "y2": {"field": {"group": "height"} } | ||
}, | }, | ||
| Ligne 86 : | Ligne 85 : | ||
}, | }, | ||
"update": { | "update": { | ||
| − | "x": {"scale": "xscale", "signal": "tooltip. | + | "x": {"scale": "xscale", "signal": "tooltip.nom"}, |
"dx": {"scale": "xscale", "band": true, "mult": 0.5}, | "dx": {"scale": "xscale", "band": true, "mult": 0.5}, | ||
| − | "y": {"scale": "yscale", "signal": "tooltip. | + | "y": {"scale": "yscale", "signal": "tooltip.morts", "offset": -5}, |
| − | "text": {"signal": "tooltip. | + | "text": {"signal": "tooltip.morts"}, |
"fillOpacity": { | "fillOpacity": { | ||
"rule": [ | "rule": [ | ||
| Ligne 105 : | Ligne 104 : | ||
} | } | ||
| mode=interactive }} | | mode=interactive }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||