« Families » : 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 24 : Ligne 24 :


<graph>{
<graph>{
  "width": 800,
"width": 800,
  "height": 300,
"height": 300,
  "data": [
"data": [
    {
{
      "name": "membres",
"name": "membres",
      "transform": [
"transform": [
        {
{
          "type": "formula",
"type": "formula",
          "field": "membre_end",
"field": "membre_end",
          "expr": "datum.membre_end ? datum.membre_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
"expr": "datum.membre_end ? datum.membre_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
        }
}
      ],
],
      "format": {
"format": {
        "type": "json",
"type": "json",
        "parse": {
"parse": {
          "membre_start": "date:\"%Y-%m-%d\"",
"membre_start": "date:\"%Y-%m-%d\"",
          "membre_end": "date:\"%Y-%m-%d\""
"membre_end": "date:\"%Y-%m-%d\""
        }
}
      },
},
      "values": [
"values": [
{
{
"label": "jesse",
"label": "jesse",
Ligne 80 : Ligne 80 :
}
}
]
]
    },
},
    {
{
      "name": "seconds",
"name": "seconds",
      "transform": [
"transform": [
        {
          "type": "formula",
          "field": "second_end",
          "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": [
        {
          "label": "taj",
          "chef_start": "2022-08-24",
          "chef_end": null
        }
    ]
    },
    {
      "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": "jesse",
          "chef_start": "2022-08-24",
          "chef_end": null
        }
    ]
    },
    {
      "name": "events",
      "format": {
        "type": "json",
        "parse": {"date": "date:\"%Y-%m-%d\""}
      },
      "values": [
{
{
"name": "26/06 - Création du gang",
"type": "formula",
"field": "second_end",
"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": [
{
"label": "taj",
"second_start": "2022-08-24",
"second_end": null
}
]
},
{
"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": "jesse",
"chef_start": "2022-08-24",
"chef_end": null
}
]
},
{
"name": "events",
"format": {
"type": "json",
"parse": {
"date": "date:\"%Y-%m-%d\""
}
},
"values": [
{
"name": "24/08 - Création du groupe",
"date": "2022-08-24",
"date": "2022-08-24",
"y": -20
"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",
}
      "type": "time",
},
      "range": "width",
{
      "round": false,
"name": "x",
      "nice": "month",
"type": "time",
      "domain": {
"range": "width",
        "data": "membres",
"nice": "week",
        "field": ["membre_start","membre_end"]
"domain": {
      }
"data": "membres",
    }
"field": [
  ],
"membre_start",
  "axes": [
"membre_end"
    {
]
      "type": "x",
}
      "scale": "x",
}
      "grid": true,
],
      "format": "%m/%y",
"axes": [
      "title": "✈️départ de l'île / ⚰️Décès / 🚪 départ consenti / ❌ Dissout / 👮 Démantèlement / 💢 Trahison / 📢 Renvoi "
{
    }
"type": "x",
  ],
"scale": "x",
  "marks": [
"grid": true,
    {
"format": "%m/%y",
      "type": "text",
"title": "✈️départ de l'île / ⚰️Décès / 🚪 départ consenti / ❌ Dissout / 👮 Démantèlement / 💢 Trahison / 📢 Renvoi "
      "from": {"data": "events"},
}
      "properties": {
],
        "enter": {
"marks": [
          "x": {"scale": "x","field": "date"},
{
          "y": {"field": "y"},
"type": "text",
          "angle": {"value": -30},
"from": {
          "fill": {"value": "#000"},
"data": "events"
          "text": {"field": "name"},
},
          "fontSize": {"value": 14}
"properties": {
        }
"enter": {
      }
"x": {
    },
"scale": "x",
    {
"field": "date"
      "type": "text",
},
      "from": {"data": "membres"},
"y": {
      "properties": {
"field": "y"
        "enter": {
},
          "x": {"scale": "x","field": "membre_end","offset": -2},
"angle": {
          "y": {"scale": "y","field": "label","offset": 6},
"value": -30
          "fill": {"value": "#000"},
},
          "text": {"field": "status"},
"fill": {
          "fontSize": {"value": 14}
"value": "#000"
        }
},
      }
"text": {
    },
"field": "name"
    {
},
      "type": "rect",
"fontSize": {
      "from": {"data": "events"},
"value": 14
      "properties": {
}
        "enter": {
}
          "x": {"scale": "x","field": "date"},
}
          "y": {"field": "y"},
},
          "width": {"value": 0.5},
{
          "height": {"field": {"group": "height"},"offset": 20},
"type": "rect",
          "fill": {"value": "#0090FF"}
"from": {
        }
"data": "events"
      }
},
    },
"properties": {
    {
"enter": {
      "type": "rect",
"x": {
      "from": {"data": "chefs"},
"scale": "x",
      "properties": {
"field": "date"
        "enter": {
},
          "x": {"scale": "x","field": "chef_start"},
"y": {
          "x2": {"scale": "x","field": "chef_end"},
"field": "y"
          "y": {"scale": "y","field": "label","offset": -3},
},
          "height": {"value": 10},
"width": {
          "fill": {"value": "#009600"}
"value": 0.5
        }
},
      }
"height": {
    },
"field": {
    {
"group": "height"
      "type": "rect",
},
      "from": {"data": "seconds"},
"offset": 20
      "properties": {
},
        "enter": {
"fill": {
          "x": {"scale": "x","field": "second_start"},
"value": "#0090FF"
          "x2": {"scale": "x","field": "second_end"},
}
          "y": {"scale": "y","field": "label","offset": -3},
}
          "height": {"value": 10},
}
          "fill": {"value": "#00ff00"}
},
        }
{
      }
"type": "text",
    },
"from": {
    {
"data": "membres"
      "type": "rect",
},
      "from": {"data": "membres"},
"properties": {
      "properties": {
"enter": {
        "enter": {
"x": {
          "x": {"scale": "x","field": "membre_start"},
"scale": "x",
          "x2": {"scale": "x","field": "membre_end"},
"field": "membre_end",
          "y": {"scale": "y","field": "label"},
"offset": -2
          "height": {"value": 4},
},
          "fill": {"value": "#004b00"}
"y": {
        }
"scale": "y",
      }
"field": "label",
    },
"offset": 6
    {
},
      "type": "text",
"fill": {
      "from": {"data": "membres"},
"value": "#000"
      "properties": {
},
        "enter": {
"text": {
          "x": {"scale": "x","field": "membre_start"},
"field": "status"
          "y": {"scale": "y","field": "label","offset": -7},
},
          "fill": {"value": "#000"},
"fontSize": {
          "text": {"field": "nom"},
"value": 14
          "fontSize": {"value": 14}
}
        }
}
      }
}
    }
},
  ]
{
"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": -3
},
"height": {
"value": 9
},
"fill": {
"value": "#000"
}
}
}
},
{
"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": -3
},
"height": {
"value": 10
},
"fill": {
"value": "#999"
}
}
}
},
{
"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": 4
},
"fill": {
"value": "#880000"
}
}
}
},
{
"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 26 août 2022 à 22:03


Organisation

Chef de gang

Membres

Anciens membres

Histoire

Les débuts

Chronologie

cadre vert: chef cadre vert foncé: second

Galerie