« Crips » : différence entre les versions

De 21Wiki
Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
Ligne 18 : Ligne 18 :


<graph>{
<graph>{
  "width": 800,
"width": 800,
  "height": 300,
"height": 200,
  "data": [
"data": [
    {
{
      "name": "membres",
"name": "membres",
      "transform": [
"transform": [
        {
          "type": "formula",
          "field": "membre_end",
          "expr": "datum.membre_end ? datum.membre_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
        }
      ],
      "format": {
        "type": "json",
        "parse": {
          "membre_start": "date:\"%Y-%m-%d\"",
          "membre_end": "date:\"%Y-%m-%d\""
        }
      },
      "values": [
{
{
"label": "park",
"type": "formula",
"nom": "Tyler Park",
"field": "membre_end",
"membre_start": "2022-06-26",
"expr": "datum.membre_end ? datum.membre_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
"membre_end": "2022-08-30",
}
"status": "❌"
],
},
"format": {
"type": "json",
"parse": {
"membre_start": "date:\"%Y-%m-%d\"",
"membre_end": "date:\"%Y-%m-%d\""
}
},
"values": [
{"label": "park","nom": "Tyler Park","membre_start": "2022-06-26","membre_end": "2022-08-30","status": "❌"},
{"label": "mendez","nom": "Emilio Mendez","membre_start": "2022-06-26","membre_end": "2022-07-15","status": "🚪"},
{"label": "scoot","nom": "Tony Scoot","membre_start": "2022-06-26","membre_end": "2022-08-30","status": "❌"},
{"label": "pavlenko","nom": "Youri Pavlenko","membre_start": "2022-06-26","membre_end": "2022-08-30","status": "❌"}
]
},
{
"name": "chefs",
"transform": [
{
{
"label": "mendez",
"type": "formula",
"nom": "Emilio Mendez",
"field": "chef_end",
"membre_start": "2022-06-26",
"expr": "datum.chef_end ? datum.chef_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
"membre_end": "2022-07-15",
}
"status": "🚪"
],
},
"format": {
{
"type": "json",
"label": "scoot",
"parse": {
"nom": "Tony Scoot",
"chef_start": "date:\"%Y-%m-%d\"",
"membre_start": "2022-06-26",
"chef_end": "date:\"%Y-%m-%d\""
"membre_end": "2022-08-30",
"status": "❌"
},
{
"label": "pavlenko",
"nom": "Youri Pavlenko",
"membre_start": "2022-06-26",
"membre_end": "2022-08-30",
"status": ""
}
}
},
"values": [
{"label": "park","chef_start": "2022-06-26","chef_end": "2022-08-30"}
]
]
    },
},
    {
{
      "name": "seconds",
"name": "events",
      "transform": [
"format": {
        {
"type": "json",
          "type": "formula",
"parse": {
          "field": "second_end",
"date": "date:\"%Y-%m-%d\""
          "expr": "datum.second_end ? datum.second_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
        }
      ],
      "format": {
        "type": "json",
        "parse": {
          "second_start": "date:\"%Y-%m-%d\"",
          "second_end": "date:\"%Y-%m-%d\""
        }
      },
      "values": []
    },
    {
      "name": "chefs",
      "transform": [
        {
          "type": "formula",
          "field": "chef_end",
          "expr": "datum.chef_end ? datum.chef_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
        }
      ],
      "format": {
        "type": "json",
        "parse": {
          "chef_start": "date:\"%Y-%m-%d\"",
          "chef_end": "date:\"%Y-%m-%d\""
        }
      },
      "values": [
        {
          "label": "park",
          "chef_start": "2022-06-26",
          "chef_end": "2022-08-30"
        }
    ]
    },
    {
      "name": "events",
      "format": {
        "type": "json",
        "parse": {"date": "date:\"%Y-%m-%d\""}
      },
      "values": [
{
"name": "26/06 - Création du gang",
"date": "2022-06-26",
"y": -20
},
{
"name": "30/08 - Dissolution du gang",
"date": "2022-08-30",
"y": -20
}
}
},
"values": [
{"name": "26/06 - Création du gang","date": "2022-06-26","y": -20},
{"name": "30/08 - Dissolution du gang","date": "2022-08-30","y": -20}
]
]
    }
}
  ],
],
  "scales": [
"scales": [
    {
{
      "name": "y",
"name": "y",
      "type": "ordinal",
"type": "ordinal",
      "range": "height",
"range": "height",
      "domain": {"data": "membres","field": "label"}
"domain": {"data": "membres","field": "label"}
    },
},
    {
{
      "name": "x",
"name": "x",
      "type": "time",
"type": "time",
      "range": "width",
"range": "width",
      "round": false,
"nice": "week",
      "nice": "month",
"domain": {
      "domain": {
"data": "membres",
        "data": "membres",
"field": ["membre_start","membre_end"]
        "field": ["membre_start","membre_end"]
}
      }
}
    }
],
  ],
"axes": [
  "axes": [
{
    {
"type": "x",
      "type": "x",
"scale": "x",
      "scale": "x",
"grid": true,
      "grid": true,
"format": "%m/%y",
      "format": "%m/%y",
"title": "✈️départ de l'île / ⚰️Décès / 🚪 départ consenti / ❌ Dissout / 👮 Démantèlement / 💢 Trahison / 📢 Renvoi "
      "title": "✈️départ de l'île / ⚰️Décès / 🚪 départ consenti / ❌ Dissout / 👮 Démantèlement / 💢 Trahison / 📢 Renvoi "
}
    }
],
  ],
"marks": [
  "marks": [
{
    {
"type": "text",
      "type": "text",
"from": {"data": "events"},
      "from": {"data": "events"},
"properties": {
      "properties": {
"enter": {
        "enter": {
"x": {"scale": "x","field": "date"},
          "x": {"scale": "x","field": "date"},
"y": {"field": "y"},
          "y": {"field": "y"},
"angle": {"value": -30},
          "angle": {"value": -30},
"fill": {"value": "#000"},
          "fill": {"value": "#000"},
"text": {"field": "name"},
          "text": {"field": "name"},
"fontSize": {"value": 14}
          "fontSize": {"value": 14}
}
        }
}
      }
},
    },
{
    {
"type": "rect",
      "type": "text",
"from": {"data": "events"},
      "from": {"data": "membres"},
"properties": {
      "properties": {
"enter": {
        "enter": {
"x": {"scale": "x","field": "date"},
          "x": {"scale": "x","field": "membre_end","offset": -2},
"y": {"field": "y"},
          "y": {"scale": "y","field": "label","offset": 6},
"width": {"value": 0.5},
          "fill": {"value": "#000"},
"height": {"field": {"group": "height"},"offset": 20},
          "text": {"field": "status"},
"fill": { "value": "#0090FF"}
          "fontSize": {"value": 14}
}
        }
}
      }
},
    },
{
    {
"type": "text",
      "type": "rect",
"from": {"data": "membres"},
      "from": {"data": "events"},
"properties": {
      "properties": {
"enter": {
        "enter": {
"x": {"scale": "x","field": "membre_end","offset": -2},
          "x": {"scale": "x","field": "date"},
"y": {"scale": "y","field": "label","offset": 6},
          "y": {"field": "y"},
"fill": {"value": "#000"},
          "width": {"value": 0.5},
"text": {"field": "status"},
          "height": {"field": {"group": "height"},"offset": 20},
"fontSize": {"value": 14}
          "fill": {"value": "#0090FF"}
}
        }
}
      }
},
    },
{
    {
"type": "rect",
      "type": "rect",
"from": {"data": "chefs"},
      "from": {"data": "chefs"},
"properties": {
      "properties": {
"enter": {
        "enter": {
"x": {"scale": "x","field": "chef_start"},
          "x": {"scale": "x","field": "chef_start"},
"x2": {"scale": "x","field": "chef_end"},
          "x2": {"scale": "x","field": "chef_end"},
"y": {"scale": "y","field": "label","offset": -3},
          "y": {"scale": "y","field": "label","offset": -3},
"height": {"value": 9},
          "height": {"value": 10},
"fill": {"value": "#111"}
          "fill": {"value": "#111"}
}
        }
}
      }
},
    },
{
    {
"type": "rect",
      "type": "rect",
"from": {"data": "membres"},
      "from": {"data": "seconds"},
"properties": {
      "properties": {
"enter": {
        "enter": {
"x": {"scale": "x","field": "membre_start"},
          "x": {"scale": "x","field": "second_start"},
"x2": {"scale": "x","field": "membre_end"},
          "x2": {"scale": "x","field": "second_end"},
"y": {"scale": "y","field": "label"},
          "y": {"scale": "y","field": "label","offset": -3},
"height": {"value": 4},
          "height": {"value": 10},
"fill": {"value": "#999"}
          "fill": {"value": "#444"}
}
        }
}
      }
},
    },
{
    {
"type": "text",
      "type": "rect",
"from": {"data": "membres"},
      "from": {"data": "membres"},
"properties": {
      "properties": {
"enter": {
        "enter": {
"x": {"scale": "x","field": "membre_start"},
          "x": {"scale": "x","field": "membre_start"},
"y": {"scale": "y","field": "label","offset": -7},
          "x2": {"scale": "x","field": "membre_end"},
"fill": {"value": "#000"},
          "y": {"scale": "y","field": "label"},
"text": {"field": "nom"},
          "height": {"value": 4},
"fontSize": {"value": 14}
          "fill": {"value": "#999"}
}
        }
}
      }
}
    },
]
    {
      "type": "text",
      "from": {"data": "membres"},
      "properties": {
        "enter": {
          "x": {"scale": "x","field": "membre_start"},
          "y": {"scale": "y","field": "label","offset": -7},
          "fill": {"value": "#000"},
          "text": {"field": "nom"},
          "fontSize": {"value": 14}
        }
      }
    }
  ]
}</graph>
}</graph>



Version du 10 novembre 2023 à 10:52


Organisation

Anciens membres

Histoire

Les débuts

Chronologie

cadre noir: chef

cadre gris foncé: second

Galerie