Graphs/Charts

The web is full of different graphing/charting open-source libraries. The good news is that if it has a javascript API, then you can use Custom Javascript with Custom HTML to render directly on the page. In this page, we'll look into how to add the integration for different libraries.

Mermaid Charts

MermaidJS lets you create diagrams and visualisations using text and code. To use it in DeveloperHub, set up a Custom HTML block with such contents:

Custom HTML
Copy

Rendered as such:

sequenceDiagram participant Alice participant Bob Alice->>John: Hello John, how are you? loop Healthcheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts
prevail! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!

WebSequenceDiagrams

WebSequenceDiagrams creates sequence diagrams. To use it in DeveloperHub, add a Custom HTML block with such contents:

Custom HTML
Copy

Rendered as such:

Alice->Bob: Authentication Request
Bob-->Alice: Authentication Response

PlantUML

PlantUML is a component that allows you to quickly write many kinds of diagrams. To use it in DeveloperHub, add a Custom HTML block with such contents:

Custom HTML
Copy

Replacing the contents of UML element with the desired UML.

Rendered as such:

@startuml Bob -> Alice : hello @enduml

JSON Crack

JSON Crack is a JSON viewer tool to visualise, format and modify. To use it in DeveloperHub, add a Custom HTML block with the embed contents, styling the iframe:

HTML
Copy

Rendered as such:

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated by Zaid Daba'een