When a query viewed in TreeMap is displayed via embed.html, some problems occurs: both background color and text color are white, so the text can't be read, and other minor css problems. When displayed in the query page, no bug occurs.
Tested on Firefox 52.0 and Chromium with same results.
Possible cause: embed.html and the main query service page doesn't use exactly the same CSS and JS. In the main page, the graph is included in a div with attributes
id="query-result" style="display: block;"
In the embed page, this div has only
Modifying DOM and the attributes makes embed.html displaying the graph correctly.