Skip to content

Commit

Permalink
Fixed #8407, scatter series added to a 3D chart via chart.addSeries
Browse files Browse the repository at this point in the history
… was not converted to a `scatter3d` series.
  • Loading branch information
TorsteinHonsi committed Jun 4, 2018
1 parent 5271654 commit 2f24788
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/parts-3d/Chart.js
Expand Up @@ -44,6 +44,14 @@ addEvent(Chart, 'afterInit', function () {
});
}
});
// And do it on dynamic add (#8407)
addEvent(Chart, 'addSeries', function (e) {
if (this.is3d()) {
if (e.options.type === 'scatter') {
e.options.type = 'scatter3d';
}
}
});

/**
* Calculate scale of the 3D view. That is required to
Expand Down

0 comments on commit 2f24788

Please sign in to comment.