Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transit system diagrams #5242

Open
danieljuschus opened this issue Jan 26, 2024 · 3 comments
Open

Transit system diagrams #5242

danieljuschus opened this issue Jan 26, 2024 · 3 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram

Comments

@danieljuschus
Copy link

Proposal

It would be great to be able to create transit system diagrams in Mermaid. I thought of this when seeing https://mermaid.js.org/syntax/gitgraph.html, e.g.:

image

This could be two metro lines with one connecting point, for example.

Obviously, it would be a bit more complex than a git graph, which just has parallel branches. The following would be needed:

  • Ability to add lines intersecting in a perpendicular way (or even 45°)
  • Different styles for the "vertices", depending on whether there is a connection, or whether it's a terminus station
  • Adding backdrops to show fare zones

and probably more.

The Transport for London Line Diagram Standards would be a nice starting point: https://content.tfl.gov.uk/tfl-line-diagram-standard.pdf

I would like to try working on this myself, but I have no idea where to start. Maybe someone can point me in the right direction?

Use Cases

  • Showing the layout of an existing transit system
  • Showing the layout of a future or fictional transit system

Obviously, this will not be used for a "finished" map that would be published by a transit agency (they would use graphic design programs). But it would be really nice e.g. in places like Obsidian.

Screenshots

No response

Syntax

No response

Implementation

This is a proposal which I'd love to see built into mermaid by the wonderful community.

@danieljuschus danieljuschus added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram labels Jan 26, 2024
@phiscesjb
Copy link

This will be a great addition to mermaid. Knowledge maps based on metro map layout will be super useful.

@Nish9
Copy link

Nish9 commented Jul 3, 2024

I would like to add that it would be great if the transit diagrams could be customizable for other purposes. For example to create similar diagrams for dataflow - such as is widely used in nextflow pipelines. Example: https://github.com/nf-core/cutandrun/blob/3.1/docs/images/cutandrun-flow-diagram-v3.0.png

@azankl
Copy link

azankl commented Jan 17, 2025

I had the same thought when seeing the gitgraph! Please make this happen! +1 from me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram
Projects
None yet
Development

No branches or pull requests

4 participants