Skip to content
Permalink
Browse files

Update topicprint.js to solve Issue #354

  • Loading branch information...
RamIyer1998 committed Oct 28, 2019
1 parent 6b8533e commit d4a1b57e6cd036c388e8dc71ebe3f31b4ebd134a
Showing with 3 additions and 1 deletion.
  1. +3 −1 www/topicprint.js
@@ -943,7 +943,9 @@ if (url)
var foreignObject = document.createElementNS(ns, 'foreignObject');
foreignObject.setAttribute("width", 140);
foreignObject.setAttribute("height", 140);
foreignObject.setAttribute("transform", "translate(20, " + (((d3.keys(topics).length / 2) + 1) * 20 + 65) + ")");
var topicLength = d3.keys(topics).length;
var legendCols = Math.max(Math.ceil(d3.keys(topics).length / Math.min(data.length, maxRows)), minCols);
foreignObject.setAttribute("transform", "translate(20, " + (((topicLength / legendCols) + 1) * 20 + 65) + ")");
var div = document.createElement('div');
div.innerHTML = '<Strong>Display Options</strong>';
var label = document.createElement('label');

0 comments on commit d4a1b57

Please sign in to comment.
You can’t perform that action at this time.