Added ability to embed multiple periods of the same graph (v1.22)

This commit is contained in:
Mark Oudsen
2021-03-10 19:57:42 +01:00
parent 7f6d5ccd03
commit e262f21dc8
7 changed files with 204 additions and 33 deletions

View File

@@ -26,6 +26,9 @@ try {
if (typeof params.graphHeight === 'string') { fields.graphHeight = params.graphHeight; }
if (typeof params.subject === 'string') { fields.subject = params.subject; }
if (typeof params.showLegend === 'string') { fields.showLegend = params.showLegend; }
if (typeof params.periods === 'string') { fields.periods = params.periods; }
if (typeof params.periods_headers === 'string') { fields.periods_headers = params.periods_headers; }
if (typeof params.debug === 'string') { fields.debug = params.debug; }
// Add generic fields
Object.keys(params).forEach(function(key) {