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

Please add a way to resize the text on the arrow connections. #5970

Open
Tylersuard opened this issue Oct 17, 2024 · 1 comment
Open

Please add a way to resize the text on the arrow connections. #5970

Tylersuard opened this issue Oct 17, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@Tylersuard
Copy link

Proposal

For example: in the following chart, I am able to resize the text inside the modules, but I can't resize the text on the arrows connecting them.

flowchart LR
classDef largeText font-size:20px;
A["User"] -- Question --> B["Chatbot"]
B -- Chatbot Answer --> C["LLM"]
A -- Answer --> C
C --> D{"Chatbot Answer"}
D -- Yes --> E["Result: Pass"]
D -- No --> F["Result: Fail"]
class A,B,C,D,E,F largeText

Example

flowchart LR
A["Evaluation Box"] -- Eval Question{fontsize:18} --> B["Chatbot"]

Screenshots

No response

@Tylersuard Tylersuard added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Oct 17, 2024
@jgreywolf
Copy link
Contributor

You can use linkstyle statement to handle this. See example below:

linkStyle 0 stroke:#ff3,font-size:18px;

Since there is no "id" associated with the link itself we are using the index position to apply the style. So while you cannot do the same classDef styling as you can with nodes, you can style each link separately.

The only drawback to this syntax is that if you move your links around, the indexes will be off and you will have to renumber

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
Projects
None yet
Development

No branches or pull requests

2 participants