Skip to content

Commit

Permalink
Include multiple histogram title in catalysis report in printing.tst
Browse files Browse the repository at this point in the history
  • Loading branch information
pdfernhout committed Oct 10, 2015
1 parent ba873e7 commit 17f9a6c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webapp/source/printing.ts
Expand Up @@ -471,12 +471,20 @@ function displayForGraphHolder(graphHolder: GraphHolder) {

if (graphHolder.chartPanes.length > 1) {
// multiple histograms
var result = [];

// Add the title
result.push(m.trust(graphHolder.chartPanes[0].outerHTML));

// Add the charts
var charts = [];
for (var i = 1; i < graphHolder.chartPanes.length; i++) {
var graphPane = graphHolder.chartPanes[i];
charts.push(m("td", displayForGraph(graphPane)));
}
var result = [m("table", {"class": "narrafirma-print-multiple-histograms"}, m("tr", charts))];
result.push(m("table", {"class": "narrafirma-print-multiple-histograms"}, m("tr", charts)));

// Add the statistics
var statisticsPanel = <HTMLElement>graphHolder.graphResultsPane.lastChild;
result.push(m.trust(statisticsPanel.outerHTML));

Expand Down

0 comments on commit 17f9a6c

Please sign in to comment.