|
|
| Ligne 1 : |
Ligne 1 : |
| <graph mode="interactive">
| |
| {
| |
| "$schema": "https://vega.github.io/schema/vega/v5.json",
| |
| "width": 1200,
| |
| "height": 1200,
| |
| "data": [
| |
| {
| |
| "name": "membres",
| |
| "values": [
| |
| {
| |
| "label": "alec",
| |
| "nom": "Alejandro Juarez",
| |
| "membre_start": "2022-02-01",
| |
| "membre_end": "2023-01-29",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "crystal",
| |
| "nom": "Crystal Leclerc",
| |
| "membre_start": "2022-02-01",
| |
| "membre_end": "2022-10-14",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "zoé",
| |
| "nom": "Zoé Dyxon",
| |
| "membre_start": "2022-02-01",
| |
| "membre_end": "2022-10-14",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "henri",
| |
| "nom": "Henri Favre",
| |
| "membre_start": "2022-02-02",
| |
| "membre_end": "2022-09-23",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "olivia",
| |
| "nom": "Olivia Miles",
| |
| "membre_start": "2022-02-03",
| |
| "membre_end": "2022-10-14",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "trigg",
| |
| "nom": "Trigg Warner",
| |
| "membre_start": "2022-02-04",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "rosita",
| |
| "nom": "Rosita Alvarez",
| |
| "membre_start": "2022-02-04",
| |
| "membre_end": "2022-10-14",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "ashwiin",
| |
| "nom": "Ashwiin Higuera",
| |
| "membre_start": "2022-02-07",
| |
| "membre_end": "2023-02-28",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "ricardo",
| |
| "nom": "Ricardo Salazar",
| |
| "membre_start": "2022-02-07",
| |
| "membre_end": "2022-10-14",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "neige",
| |
| "nom": "Neige Burn Miara",
| |
| "membre_start": "2022-02-07",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "james",
| |
| "nom": "James Macfarlane",
| |
| "membre_start": "2022-02-08",
| |
| "membre_end": "2022-10-14",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "isaac",
| |
| "nom": "Isaac Orlov",
| |
| "membre_start": "2022-02-12",
| |
| "membre_end": "2022-10-14",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "koda",
| |
| "nom": "Koda Jackal",
| |
| "membre_start": "2022-02-12",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "marty",
| |
| "nom": "Marty Jensen",
| |
| "membre_start": "2022-02-15",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "jack",
| |
| "nom": "Jack Chapman",
| |
| "membre_start": "2022-02-15",
| |
| "membre_end": "2022-10-14",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "will",
| |
| "nom": "Will Sigbert",
| |
| "membre_start": "2022-02-20",
| |
| "membre_end": "2023-02-05",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "jackp",
| |
| "nom": "Jack Palmer",
| |
| "membre_start": "2022-02-24",
| |
| "membre_end": "2022-10-14",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "zora",
| |
| "nom": "Zora Fernandez",
| |
| "membre_start": "2022-02-26",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "gabriela",
| |
| "nom": "Gabriela Costa",
| |
| "membre_start": "2022-03-02",
| |
| "membre_end": "2023-03-02",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "sean",
| |
| "nom": "Sean Asher",
| |
| "membre_start": "2022-03-31",
| |
| "membre_end": "2022-10-14",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "elyana",
| |
| "nom": "Elyana Torres",
| |
| "membre_start": "2022-05-28",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "tyler",
| |
| "nom": "Tyler Daniels",
| |
| "membre_start": "2022-05-28",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "noa",
| |
| "nom": "Noa Coleman-Poliak",
| |
| "membre_start": "2022-05-29",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "eliott",
| |
| "nom": "Eliott Jensen",
| |
| "membre_start": "2022-06-05",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "flora",
| |
| "nom": "Flora Waters-Vega",
| |
| "membre_start": "2022-06-08",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "flore",
| |
| "nom": "Flore Burn Miara",
| |
| "membre_start": "2022-06-13",
| |
| "membre_end": "2022-10-01",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "li",
| |
| "nom": "Han Li",
| |
| "membre_start": "2022-07-20",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "trevor",
| |
| "nom": "Trevor Mills",
| |
| "membre_start": "2022-07-19",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "terry",
| |
| "nom": "Terry Dulend",
| |
| "membre_start": "2022-09-04",
| |
| "membre_end": "2022-10-14",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "stan",
| |
| "nom": "Stan Baker",
| |
| "membre_start": "2022-09-07",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "angele",
| |
| "nom": "Angèle Blue",
| |
| "membre_start": "2022-09-16",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "lily",
| |
| "nom": "Lily Brooke",
| |
| "membre_start": "2022-09-17",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "luna",
| |
| "nom": "Luna Aragon",
| |
| "membre_start": "2022-09-23",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "mathias",
| |
| "nom": "Mathias Dirz",
| |
| "membre_start": "2022-10-15",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "casey",
| |
| "nom": "Casey Boyle",
| |
| "membre_start": "2022-10-18",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "derek",
| |
| "nom": "Derek Denis",
| |
| "membre_start": "2022-10-20",
| |
| "membre_end": "2023-01-30",
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "emil",
| |
| "nom": "Emil Spray",
| |
| "membre_start": "2022-10-20",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "annie",
| |
| "nom": "Annie Leclair",
| |
| "membre_start": "2022-10-29",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "jeandidier",
| |
| "nom": "Jean-Didier de Montargy",
| |
| "membre_start": "2022-11-18",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "dallas",
| |
| "nom": "Dallas Fairbanks",
| |
| "membre_start": "2022-11-21",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "lexi",
| |
| "nom": "Lexi Carson",
| |
| "membre_start": "2022-11-23",
| |
| "membre_end": "2023-01-19",
| |
| "status": "✈️"
| |
| },
| |
| {
| |
| "label": "elliot",
| |
| "nom": "Elliot Sparks",
| |
| "membre_start": "2022-11-24",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "soledad",
| |
| "nom": "Soledad Garcia",
| |
| "membre_start": "2022-11-28",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "sam",
| |
| "nom": "Sam Baker",
| |
| "membre_start": "2022-12-02",
| |
| "membre_end": "2023-04-06",
| |
| "status": "🚪"
| |
| },
| |
| {
| |
| "label": "gwen",
| |
| "nom": "Gwen Spencer",
| |
| "membre_start": "2022-12-05",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "flint",
| |
| "nom": "Flint Endstill",
| |
| "membre_start": "2022-12-19",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "josh",
| |
| "nom": "Josh Micky",
| |
| "membre_start": "2022-12-21",
| |
| "membre_end": "2023-03-09",
| |
| "status": "⚰️"
| |
| },
| |
| {
| |
| "label": "maya",
| |
| "nom": "Maya Dixon",
| |
| "membre_start": "2023-01-04",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "cathardo",
| |
| "nom": "Isaac Cathardo",
| |
| "membre_start": "2023-01-04",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "angus",
| |
| "nom": "Angus Steal",
| |
| "membre_start": "2023-01-16",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "louis",
| |
| "nom": "Louis Peyre",
| |
| "membre_start": "2023-02-09",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "bobby",
| |
| "nom": "Bobby Ryan",
| |
| "membre_start": "2023-03-03",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "mimi",
| |
| "nom": "Mimi Watson",
| |
| "membre_start": "2023-03-23",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "dwayne",
| |
| "nom": "Dwayne Retzky",
| |
| "membre_start": "2023-04-04",
| |
| "membre_end": null,
| |
| "status": null
| |
| },
| |
| {
| |
| "label": "skye",
| |
| "nom": "Skye Costello",
| |
| "membre_start": "2023-05-14",
| |
| "membre_end": null,
| |
| "status": null
| |
| }
| |
| ],
| |
| "transform": [
| |
| {
| |
| "type": "formula",
| |
| "as": "membre_end",
| |
| "expr": "datum.membre_end ? datum.membre_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
| |
| }
| |
| ],
| |
| "format": {"parse": {"membre_start": "date", "membre_end": "date"}}
| |
| },
| |
| {
| |
| "name": "troisieme",
| |
| "values": [
| |
|
| |
|
| ],
| |
| "transform": [
| |
| {
| |
| "type": "formula",
| |
| "as": "troisieme_end",
| |
| "expr": "datum.troisieme_end ? datum.troisieme_end: datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
| |
| }
| |
| ],
| |
| "format": {"parse": {"troisieme_start": "date", "troisieme_end": "date"}}
| |
| },
| |
| {
| |
| "name": "seconds",
| |
| "values": [
| |
| {
| |
| "label": "henri",
| |
| "second_start": "2022-02-05",
| |
| "second_end": "2022-05-29"
| |
| },
| |
| {
| |
| "label": "will",
| |
| "second_start": "2022-05-29",
| |
| "second_end": "2023-01-07"
| |
| },
| |
| {
| |
| "label": "cathardo",
| |
| "second_start": "2023-01-07",
| |
| "second_end": null
| |
| }
| |
| ],
| |
| "transform": [
| |
| {
| |
| "type": "formula",
| |
| "as": "second_end",
| |
| "expr": "datum.second_end ? datum.second_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
| |
| }
| |
| ],
| |
| "format": {"parse": {"second_start": "date", "second_end": "date"}}
| |
| },
| |
| {
| |
| "name": "chefs",
| |
| "values": [
| |
| {
| |
| "label": "alec",
| |
| "chef_start": "2022-02-01",
| |
| "chef_end": "2022-06-28"
| |
| },
| |
| {
| |
| "label": "ashwiin",
| |
| "chef_start": "2022-06-28",
| |
| "chef_end": "2022-10-11"
| |
| },
| |
| {
| |
| "label": "li",
| |
| "chef_start": "2022-10-11",
| |
| "chef_end": null
| |
| }
| |
| ],
| |
| "transform": [
| |
| {
| |
| "type": "formula",
| |
| "as": "chef_end",
| |
| "expr": "datum.chef_end ? datum.chef_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
| |
| }
| |
| ],
| |
| "format": {"parse": {"chef_start": "date", "chef_end": "date"}}
| |
| },
| |
| {
| |
| "name": "events",
| |
| "values": [
| |
|
| |
| ],
| |
| "format": {"parse": {"date": "date"}}
| |
| },
| |
| {
| |
| "name": "annee",
| |
| "values": [
| |
|
| |
| ],
| |
| "format": {"parse": {"date": "date"}}
| |
| }
| |
| ],
| |
| "scales": [
| |
| {
| |
| "name": "x",
| |
| "type": "time",
| |
| "range": "width",
| |
| "domain": {
| |
| "data": "membres",
| |
| "fields": ["membre_start", "membre_end"]
| |
| }
| |
| },
| |
| {
| |
| "name": "y",
| |
| "type": "band",
| |
| "range": "height",
| |
| "domain": {"data": "membres", "field": "label"},
| |
| "padding": 0.2
| |
| }
| |
| ],
| |
| "axes": [
| |
| {"orient": "bottom", "scale": "x", "grid": true, "format": "%m/%y"}
| |
| ],
| |
| "marks": [
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "troisieme"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "troisieme_start"},
| |
| "x2": {"scale": "x", "field": "troisieme_end"},
| |
| "y": {"scale": "y", "field": "label", "offset": -3},
| |
| "height": {"value": 10},
| |
| "fill": {"value": "#D3D3D3"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "seconds"},
| |
| "encode": {
| |
| "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": "chefs"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "chef_start"},
| |
| "x2": {"scale": "x", "field": "chef_end"},
| |
| "y": {"scale": "y", "field": "label", "offset": -3},
| |
| "height": {"value": 10},
| |
| "fill": {"value": "#000"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "membres"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "membre_start"},
| |
| "x2": {"scale": "x", "field": "membre_end"},
| |
| "y": {"scale": "y", "field": "label"},
| |
| "height": {"value": 4},
| |
| "fill": {"value": "#7E0000"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "events"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "date"},
| |
| "y": {"field": "y"},
| |
| "width": {"value": 0.5},
| |
| "height": {"value": 1200},
| |
| "fill": {"value": "#0090FF"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "text",
| |
| "from": {"data": "events"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "date"},
| |
| "y": {"field": "y"},
| |
| "angle": {"value": -30},
| |
| "text": {"field": "name"},
| |
| "fill": {"value": "#000"},
| |
| "fontSize": {"value": 14}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "rect",
| |
| "from": {"data": "annee"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "date"},
| |
| "y": {"field": "y"},
| |
| "width": {"value": 0.5},
| |
| "height": {"value": 1200},
| |
| "fill": {"value": "#FF0000"}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "text",
| |
| "from": {"data": "annee"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "date"},
| |
| "y": {"field": "y"},
| |
| "angle": {"value": -30},
| |
| "text": {"field": "name"},
| |
| "fill": {"value": "#FF0000"},
| |
| "fontSize": {"value": 20}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "text",
| |
| "from": {"data": "membres"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "membre_start"},
| |
| "y": {"scale": "y", "field": "label", "offset": -7},
| |
| "text": {"field": "nom"},
| |
| "fill": {"value": "#000"},
| |
| "fontSize": {"value": 14}
| |
| }
| |
| }
| |
| },
| |
| {
| |
| "type": "text",
| |
| "from": {"data": "membres"},
| |
| "encode": {
| |
| "enter": {
| |
| "x": {"scale": "x", "field": "membre_end", "offset": -2},
| |
| "y": {"scale": "y", "field": "label", "offset": 6},
| |
| "text": {"field": "status"},
| |
| "fill": {"value": "#000"},
| |
| "fontSize": {"value": 14}
| |
| }
| |
| }
| |
| }
| |
| ]
| |
| }
| |
| </graph>
| |