Navigation Menu

Skip to content

Commit

Permalink
Fixed #7991, treemap had wrong root on export.
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-a-nygaard authored and TorsteinHonsi committed Mar 22, 2018
1 parent be8acbc commit 7a2eb51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/modules/treemap.src.js
Expand Up @@ -1011,14 +1011,17 @@ seriesType('treemap', 'scatter', {
translate: function () {
var series = this,
options = series.options,
rootId = series.rootNode =
pick(series.rootNode, series.options.rootId, ''),
rootId = pick(series.rootNode, options.rootId, ''),
rootNode,
pointValues,
seriesArea,
tree,
val;

// Set rootId on series.userOptions to pick it up in exporting.
// Set rootId on series to pick it up on next translate.
series.userOptions.rootId = series.rootNode = rootId;

// Call prototype function
Series.prototype.translate.call(series);

Expand Down

0 comments on commit 7a2eb51

Please sign in to comment.