« Test » : différence entre les versions
De 21Wiki
Aucun résumé des modifications Balise : Éditeur de wikicode 2017 |
Aucun résumé des modifications Balise : Éditeur de wikicode 2017 |
||
Ligne 1 : | Ligne 1 : | ||
<graph> | <graph>{ | ||
{ | |||
"width": 800, | "width": 800, | ||
"height": 600, | "height": 600, | ||
Ligne 22 : | Ligne 21 : | ||
{ | { | ||
"label": "haylie", | "label": "haylie", | ||
"nom": " | "nom": "Haylie James", | ||
"membre_start": "2021-05-11", | "membre_start": "2021-05-11", | ||
"membre_end": "2021-06-08" | "membre_end": "2021-06-08" | ||
Ligne 166 : | Ligne 165 : | ||
"chef_start": "2021-05-11", | "chef_start": "2021-05-11", | ||
"chef_end": "2021-10-30" | "chef_end": "2021-10-30" | ||
} | |||
] | |||
}, | |||
{ | |||
"name": "events", | |||
"format": { | |||
"type": "json", | |||
"parse": { | |||
"date": "date:\"%Y-%m-%d\"" | |||
} | |||
}, | |||
"values": [ | |||
{ | |||
"name": "Méthamphétamine", | |||
"date": "2021-05-27" | |||
}, | |||
{ | |||
"name": "Armes", | |||
"date": "2021-07-06" | |||
}, | |||
{ | |||
"name": "Déménagement", | |||
"date": "2021-08-23" | |||
} | } | ||
] | ] | ||
Ligne 198 : | Ligne 220 : | ||
], | ], | ||
"marks": [ | "marks": [ | ||
{ | |||
"type": "text", | |||
"from": {"data": "events"}, | |||
"properties": { | |||
"enter": { | |||
"x": {"scale": "x","field": "date"}, | |||
"y": {"value": -10}, | |||
"angle": {"value": -45}, | |||
"fill": {"value": "#000"}, | |||
"text": {"field": "name"}, | |||
"font": {"value": "Helvetica Neue"}, | |||
"fontSize": {"value": 12} | |||
} | |||
} | |||
}, | |||
{ | |||
"type": "rect", | |||
"from": {"data": "events"}, | |||
"properties": { | |||
"enter": { | |||
"x": {"scale": "x","field": "date"}, | |||
"y": {"value": -20}, | |||
"width": {"value": 1}, | |||
"height": {"field": {"group": "height"},"offset": 8}, | |||
"fill": {"value": "#888"} | |||
} | |||
} | |||
}, | |||
{ | { | ||
"type": "rect", | "type": "rect", | ||
Ligne 252 : | Ligne 302 : | ||
} | } | ||
] | ] | ||
} | }</graph> | ||
</graph> |