go-graphviz
go-graphviz copied to clipboard
Text Overflow
Playing around with this library for fun. Running into an issue where the default renderer seems to produce images that have the text overflowed beyond their bounding boxes.
Using a fairly simple digraph:
digraph test {
graph [bb="0,0,1075.5,373",
fontsize=9,
rankdir=LR
];
node [label="\N",
shape=ellipse
];
edge [arrowhead=normal];
"warehouse_clean.champion_data" [height=0.5,
pos="179.66,18",
shape=box,
width=2.4736];
"warehouse_clean.raw_game_champions" [height=0.5,
pos="496.04,72",
shape=box,
width=2.7979];
"warehouse_raw.raw_game_champions" [height=0.5,
pos="179.66,72",
shape=box,
width=2.6791];
"warehouse_raw.raw_game_champions" -> "warehouse_clean.raw_game_champions" [key=e,
arrowhead=empty,
pos="e,395.05,72 276.3,72 310.54,72 349.33,72 384.69,72"];
"warehouse_clean.participant_information" [height=0.5,
pos="496.04,153",
shape=box,
width=2.722];
"warehouse_dw.dim_mmr_percentiles" [height=0.5,
pos="734.26,180",
shape=box,
width=2.8194];
"warehouse_clean.participant_information" -> "warehouse_dw.dim_mmr_percentiles" [key=e,
arrowhead=empty,
pos="e,632.75,168.49 594.31,164.14 603.62,165.19 613.12,166.27 622.55,167.34"];
"raw_production.internal__player_participant_information" [height=0.5,
pos="179.66,193",
shape=box,
width=4.4287];
"raw_production.internal__player_participant_information" -> "warehouse_clean.participant_information" [key=e,
arrowhead=empty,
pos="e,397.82,165.42 322.11,174.99 344.2,172.2 366.7,169.35 387.87,166.68"];
"raw_production.internal__lol__eogd__participant_information" [height=0.5,
pos="179.66,139",
shape=box,
width=4.9904];
"raw_production.internal__lol__eogd__participant_information" -> "warehouse_clean.participant_information" [key=e,
arrowhead=empty,
pos="e,397.83,148.65 359.57,146.96 369.07,147.38 378.46,147.8 387.61,148.2"];
"warehouse_dm.dim_mmr_percentiles" [height=0.5,
pos="973.65,180",
shape=box,
width=2.8303];
"warehouse_dw.dim_mmr_percentiles" -> "warehouse_dm.dim_mmr_percentiles" [key=e,
arrowhead=empty,
pos="e,871.59,180 835.78,180 844.3,180 852.95,180 861.54,180"];
"warehouse_dw.dim_env" [height=0.5,
pos="496.04,207",
shape=box,
width=1.7936];
"warehouse_dw.dim_env" -> "warehouse_dw.dim_mmr_percentiles" [key=e,
arrowhead=empty,
pos="e,632.76,191.5 560.82,199.66 579.97,197.49 601.5,195.05 622.71,192.64"];
"warehouse_raw.raw__game_items" [height=0.5,
pos="179.66,247",
shape=box,
width=2.3552];
"warehouse_raw.raw_game_items" [height=0.5,
pos="179.66,301",
shape=box,
width=2.258];
"warehouse_raw.raw_game_map_modes" [height=0.5,
pos="179.66,355",
shape=box,
width=2.7763];
}
Produces an image where the text is completely overflow'd past the bounding box.
I'm running into the same issue.
i found that the svg render seemed to generate the correct image but the png went outside the boxes.. perhaps try the svg render.