microsoft / microsoft/automatic-graph-layout

Adding a text to some place near a node.

Open
#91 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.5k
Forks
319
Avg merge
38m
Merged PRs (30d)
1

Description

Hello,

I've been trying to put a text near a node. I've tried setting the label property but it replaces the text inside the node.

        var node = drawGraph.AddNode(nodeName);
        node.Label = nodeExecutionTime;

This will replace the text inside the node. I want the text inside the node to be what it currently is (i.e nodeName), but then add another text somewhere outside of the node (i.e nodeExecutionTime).

How can I add another text ( like a number to represent a time ) anywhere near a node?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the AddNode and node.Label usage shown in the issue, then inspect the graph layout and viewing APIs for how node text is represented. The change would be complete when the existing node name remains visible and a separate execution-time text can be placed near that node.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.