Skip to content

Commit 569c1ed

Browse files
authored
Merge pull request #1418 from finos/zero-color-bug
Fix color gradient charts containing 0
2 parents 4710984 + 8b32e19 commit 569c1ed

File tree

1 file changed

+1
-1
lines changed
  • packages/perspective-viewer-d3fc/src/js/data

1 file changed

+1
-1
lines changed

packages/perspective-viewer-d3fc/src/js/data/treeData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function treeData(settings) {
3131
if (settings.realValues.length > 1 && settings.realValues[1] !== null) {
3232
const is_leaf = i === groups.length - 1;
3333
const colorValue = is_leaf ? getDataValue(d, settings.mainValues[1], split) : getDataValue(settings.agg_paths[j][i + 1] || d, settings.mainValues[1], split);
34-
if (colorValue) {
34+
if (colorValue !== undefined) {
3535
element.color = colorValue;
3636
}
3737
}

0 commit comments

Comments
 (0)