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

Document curve interpolation #2275

Merged
merged 1 commit into from
Sep 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/diagrams-and-syntax-and-examples/flowchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,26 @@ defined in the linkStyle statement will belong to the fourth link in the graph:
linkStyle 3 stroke:#ff3,stroke-width:4px,color:red;
```

You can specify default to apply to all links, or you can give a list of link order numbers seperated by a comma.

Instead of giving a styles option, you can also use custom d3 curve types with the following syntax:

```
linkStyle default|numList|num interpolate curveType
```

If you want to add style options too, instead of writing:

```
linkStyle default interpolate cardinal
linkStyle default stroke:#ff3,stroke-width:4px,color:red;
```

You can combine them into:

```
linkStyle default interpolate cardinal stroke:#ff3,stroke-width:4px,color:red;
```

### Styling a node

Expand Down