Balise : Éditeur de wikicode 2017 |
Balises : Blanchiment Révocation manuelle Éditeur de wikicode 2017 |
(429 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": {
| |
| "membre_start": "date:\"%Y-%m-%d\"",
| |
| "membre_end": "date:\"%Y-%m-%d\""
| |
| }
| |
| },
| |
| "values": [
| |
| {
| |
| "label": "miguel",
| |
| "nom": "Miguel Rodriguez",
| |
| "membre_start": "2021-05-11",
| |
| "membre_end": "2021-10-30"
| |
| },
| |
| {
| |
| "label": "haylie",
| |
| "nom": "Haylie James",
| |
| "membre_start": "2021-05-11",
| |
| "membre_end": "2021-06-08"
| |
| },
| |
| {
| |
| "label": "pablo",
| |
| "nom": "Pablo Luján Arteaga",
| |
| "membre_start": "2021-05-11",
| |
| "membre_end": "2021-10-30"
| |
| }
| |
| ]
| |
| },
| |
| {
| |
| "name": "seconds",
| |
| "format": {
| |
| "type": "json",
| |
| "parse": {
| |
| "second_start": "date:\"%Y-%m-%d\"",
| |
| "second_end": "date:\"%Y-%m-%d\""
| |
| }
| |
| },
| |
| "values": [
| |
| {
| |
| "label": "haylie",
| |
| "second_start": "2021-05-11",
| |
| "second_end": "2021-06-08"
| |
| },
| |
| {
| |
| "label": "pablo",
| |
| "second_start": "2021-06-08",
| |
| "second_end": "2021-10-30"
| |
| }
| |
| ]
| |
| },
| |
| {
| |
| "name": "chefs",
| |
| "format": {
| |
| "type": "json",
| |
| "parse": {
| |
| "chef_start": "date:\"%Y-%m-%d\"",
| |
| "chef_end": "date:\"%Y-%m-%d\""
| |
| }
| |
| },
| |
| "values": [
| |
| {
| |
| "label": "miguel",
| |
| "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": ["membre_start","membre_end"]
| |
| }
| |
| }
| |
| ],
| |
| "axes": [{"type": "x","scale": "x"}],
| |
| "marks": [
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "chefs"},
| |
| "properties": {
| |
| "enter": {
| |
| "x": {"scale": "x","field": "chef_start"},
| |
| "x2": {"scale": "x","field": "chef_end"},
| |
| "y": {"scale": "y","field": "label", "offset":-2},
| |
| "height": {"value": 6},
| |
| "fill": {"value": "#333"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "seconds"},
| |
| "properties": {
| |
| "enter": {
| |
| "x": {"scale": "x","field": "second_start"},
| |
| "x2": {"scale": "x","field": "second_end"},
| |
| "y": {"scale": "y","field": "label", "offset":-2},
| |
| "height": {"value": 6},
| |
| "fill": {"value": "#666"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "membres"},
| |
| "properties": {
| |
| "enter": {
| |
| "x": {"scale": "x","field": "membre_start"},
| |
| "x2": {"scale": "x","field": "membre_end"},
| |
| "y": {"scale": "y","field": "label"},
| |
| "height": {"value": 2},
| |
| "fill": {"value": "#888"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "text",
| |
| "from": {"data": "membres"},
| |
| "properties": {
| |
| "enter": {
| |
| "x": {"scale": "x","field": "membre_start"},
| |
| "y": {"scale": "y","field": "label","offset": -4},
| |
| "fill": {"value": "#000"},
| |
| "text": {"field": "nom"},
| |
| "font": {"value": "Helvetica Neue"},
| |
| "fontSize": {"value": 10}
| |
| }
| |
| }
| |
| }
| |
| ]
| |
| }
| |
| </graph>
| |