microsoft / microsoft/automatic-graph-layout
Part of a label is missing on a viewer
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 319
- Avg merge
- 38m
- Merged PRs (30d)
- 1
Description
Displaying a graph with
DisplayGeometryGraph.ShowGraph(MSAGLGraph.GeometryGraph);
using (var stream = File.Create(@"c:\temp\example.svg"))
{
var writer = new SvgGraphWriter(stream, MSAGLGraph)
{
BlackAndWhite = false,
AllowedToWriteUri = true,
};
writer.Write();
}
And for some reason viewer shows just a part of a label. However SvgGraphWriter puts labels correctly.
What could it be?

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with DisplayGeometryGraph.ShowGraph and the provided C# graph, then compare the viewer output with the SVG produced by SvgGraphWriter. Trace how the viewer renders labels and determine what causes the displayed label to be truncated; done means the full label is visible in the viewer without regressing SVG output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100