Skip to content

Commit

Permalink
fix(sankey): forget to process the special value 0 when getDataParams…
Browse files Browse the repository at this point in the history
…() in SankeySeries.js
  • Loading branch information
deqingli committed Dec 2, 2019
1 parent 2c32827 commit 22b6758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/sankey/SankeySeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ var SankeySeries = SeriesModel.extend({
// Override Series.getDataParams()
getDataParams: function (dataIndex, dataType) {
var params = SankeySeries.superCall(this, 'getDataParams', dataIndex, dataType);
if (!params.value && dataType === 'node') {
if (params.value == null && dataType === 'node') {
var node = this.getGraph().getNodeByIndex(dataIndex);
var nodeValue = node.getLayout().value;
params.value = nodeValue;
Expand Down

0 comments on commit 22b6758

Please sign in to comment.