Add MERMAID_RELEASE_VERSION in sankey

This commit is contained in:
Sidharth Vinod 2023-07-25 20:49:54 +05:30
parent 509a580f9d
commit 48c8311369
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
3 changed files with 3 additions and 3 deletions

View File

@ -228,7 +228,7 @@ mermaid fully supports webpack. Here is a [working demo](https://github.com/merm
The main idea of the API is to be able to call a render function with the graph definition as a string. The render function will render the graph and call a callback with the resulting SVG code. With this approach it is up to the site creator to fetch the graph definition from the site (perhaps from a textarea), render it and place the graph somewhere in the site.
The example below show an outline of how this could be used. The example just logs the resulting SVG to the JavaScript console.
The example below shows an example of how this could be used. The example just logs the resulting SVG to the JavaScript console.
```html
<script type="module">

View File

@ -4,7 +4,7 @@
>
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/syntax/sankey.md](../../packages/mermaid/src/docs/syntax/sankey.md).
# Sankey diagrams
# Sankey diagram (v\<MERMAID_RELEASE_VERSION>+)
> A sankey diagram is a visualization used to depict a flow from one set of values to another.

View File

@ -1,4 +1,4 @@
# Sankey diagrams
# Sankey diagram (v<MERMAID_RELEASE_VERSION>+)
> A sankey diagram is a visualization used to depict a flow from one set of values to another.