informatics-lab / cssp_china_wp5.6_binder

0 stars 0 forks source link

README: Mermaid flow diagram #26

Open kaedonkers opened 1 year ago

kaedonkers commented 1 year ago

GitHub now natively supports Mermaid flow diagrams in rendered Markdown files (https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/).

We have a flow diagram in this project, so this issue is to capture code and thinking about including an interactive flow diagram in the repo README.

kaedonkers commented 1 year ago

Best example I came up with was this, which isn't very satisfying:

flowchart LR
    A[Data Collection & Processing]
    B[Correlation Threshold]
    C[Random Forest]
    D[Bayesian Network]
    E[Dynamics Visualisations]
    F[Linear Regression]

    subgraph _
        direction LR
        A --> B --> C --> D --> E --> F
    end

    H[Historical Climate Indices]
    I[Global Meteorological Reanalysis]
    J[Regional Temperature Reanalysis]
    K[Chronological & Causal Rules]
    L[Global Meteorological Analysis]
    M[Regional Temperature Forecast]

    subgraph __
        direction LR
        H --> A
        I --> A
        J --> B
        J --> C
        K --> D
        L --> E
        F --> M
    end
flowchart LR
    A[Data Collection & Processing]
    B[Correlation Threshold]
    C[Random Forest]
    D[Bayesian Network]
    E[Dynamics Visualisations]
    F[Linear Regression]

    subgraph _
        direction LR
        A --> B --> C --> D --> E --> F
    end

    H[Historical Climate Indices]
    I[Global Meteorological Reanalysis]
    J[Regional Temperature Reanalysis]
    K[Chronological & Causal Rules]
    L[Global Meteorological Analysis]
    M[Regional Temperature Forecast]

    subgraph __
        direction LR
        H --> A
        I --> A
        J --> B
        J --> C
        K --> D
        L --> E
        F --> M
    end