1592-SVG syntax error with links

Added xlink namespace to svg definition
This commit is contained in:
Justin Greywolf
2020-08-12 13:45:07 -07:00
parent 595e03c584
commit 5e72416478
11 changed files with 67 additions and 4 deletions

View File

@@ -397,6 +397,7 @@ export const draw = function(text, id) {
// Set up an SVG group so that we can translate the final graph.
const svg = select(`[id="${id}"]`);
svg.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
// Run the renderer. This is what draws the final graph.
const element = select('#' + id + ' g');