Balise : Éditeur de wikicode 2017 |
Balises : Blanchiment Révocation manuelle Éditeur de wikicode 2017 |
(430 versions intermédiaires par 8 utilisateurs non affichées) |
Ligne 1 : |
Ligne 1 : |
| <graph>
| | |
| {
| |
| "width": 800,
| |
| "height": 200,
| |
| "data": [
| |
| {
| |
| "name": "membres",
| |
| "format": {
| |
| "type": "json",
| |
| "parse": {
| |
| "chef_start": "date:\"%Y-%m-%d\"",
| |
| "chef_end": "date:\"%Y-%m-%d\""
| |
| }
| |
| },
| |
| "values": [
| |
| {
| |
| "label": "miguel",
| |
| "nom": "Miguel Rodriguez",
| |
| "chef_start": "2021-05-11",
| |
| "chef_end": "2021-10-30"
| |
| }
| |
| ]
| |
| }
| |
| ],
| |
| "scales": [
| |
| {
| |
| "name": "y",
| |
| "type": "ordinal",
| |
| "range": "height",
| |
| "domain": {
| |
| "data": "membres",
| |
| "field": "label"
| |
| }
| |
| },
| |
| {
| |
| "name": "x",
| |
| "type": "time",
| |
| "range": "width",
| |
| "round": true,
| |
| "nice": "month",
| |
| "domain": {
| |
| "data": "membres",
| |
| "field": [
| |
| "chef_start",
| |
| "chef_end"
| |
| ]
| |
| }
| |
| }
| |
| ],
| |
| "axes": [
| |
| {
| |
| "type": "x",
| |
| "scale": "x"
| |
| }
| |
| ],
| |
| "marks": [
| |
| {
| |
| "type": "rect",
| |
| "from": {
| |
| "data": "membres"
| |
| },
| |
| "properties": {
| |
| "enter": {
| |
| "x": {
| |
| "scale": "x",
| |
| "field": "chef_start"
| |
| },
| |
| "x2": {
| |
| "scale": "x",
| |
| "field": "chef_end"
| |
| },
| |
| "y": {
| |
| "scale": "y",
| |
| "field": "nom"
| |
| },
| |
| "height": {
| |
| "value": 4
| |
| },
| |
| "fill": {
| |
| "value": "#555"
| |
| }
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "text",
| |
| "from": {
| |
| "data": "membres"
| |
| },
| |
| "properties": {
| |
| "enter": {
| |
| "x": {
| |
| "scale": "x",
| |
| "field": "chef_start"
| |
| },
| |
| "y": {
| |
| "scale": "y",
| |
| "field": "label",
| |
| "offset": -3
| |
| },
| |
| "fill": {
| |
| "value": "#000"
| |
| },
| |
| "text": {
| |
| "field": "nom"
| |
| },
| |
| "font": {
| |
| "value": "Helvetica Neue"
| |
| },
| |
| "fontSize": {
| |
| "value": 10
| |
| }
| |
| }
| |
| }
| |
| }
| |
| ]
| |
| }
| |
| </graph>
| |