diff --git a/src/chart/graph/util/RecordUtils.ts b/src/chart/graph/util/RecordUtils.ts index b8d853d33..f2d6dd4d6 100644 --- a/src/chart/graph/util/RecordUtils.ts +++ b/src/chart/graph/util/RecordUtils.ts @@ -69,9 +69,10 @@ function extractGraphEntitiesFromField( source: value.start.low, target: value.end.low, type: value.type, - width: !Number.isNaN(value.properties[relWidthProperty]) - ? toNumber(value.properties[relWidthProperty]) - : defaultRelWidth, + width: + value.properties[relWidthProperty] !== undefined && !Number.isNaN(value.properties[relWidthProperty]) + ? toNumber(value.properties[relWidthProperty]) + : defaultRelWidth, color: value.properties[relColorProperty] ? value.properties[relColorProperty] : defaultRelColor, properties: value.properties, });