biocore / emperor

Emperor a tool for the analysis and visualization of large microbial ecology datasets
http://biocore.github.io/emperor/
Other
52 stars 50 forks source link

Save as SVG with legends fails #754

Closed ElDeveloper closed 4 years ago

ElDeveloper commented 4 years ago

As reported in the forum, looks like the latest version of Emperor is failing to produce SVG labels for a plot. When I look at the JavaScript console here's the traceback I see:

Uncaught TypeError: Cannot read property 'length' of undefined
    at draw.js:486
    at underscore-min.js:5
    at Function.m.each.m.forEach (underscore-min.js:5)
    at Function.m.max (underscore-min.js:5)
    at Object.formatSVGLegend (draw.js:486)
    at EmperorController.screenshot (controller.js:875)
    at n.fn.init.callback (controller.js:722)
    at HTMLLIElement.itemClick (jquery.contextMenu.min.js:17)
    at HTMLDocument.dispatch (jquery-2.1.4.min.js:3)
    at HTMLDocument.b.dispatch (jquery.event.drag-2.2.min.js:6)