Documentation

    Hosted installer: at launch

    Titanic: class, sex and survival

    Back to the chart gallery

    The 1912 Titanic disaster is recorded here as aggregated class, sex and survival counts. Ribbons show contingency-table counts rather than the paths of individual people.

    Survival differed across class and sex

    3rd1st2ndCrew

    8 links with a value of zero are not drawn · ribbons add up the rows that share two neighbouring categories and the first category

    The same chart in each style

    Source

    Rich Markdown
    ---
    title: "Titanic: class, sex and survival"
    styles: [brutalist]
    ---
    
    ```chart
    {
      "axes": {
        "y": {
          "label": "People"
        }
      },
      "data": {
        "csv": "data.csv"
      },
      "encoding": {
        "dimensions": [
          "class",
          "sex",
          "survived"
        ],
        "y": "people"
      },
      "title": "Survival differed across class and sex",
      "type": "alluvial"
    }
    ```
    
    

    Data and credits

    Complete report and provenance · Rich Markdown source · CSV observations.

    Was this page useful? Suggest an edit