We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13052a8 commit 4dabda0Copy full SHA for 4dabda0
src/plot.js
@@ -35,7 +35,7 @@ export function plot(options = {}) {
35
if (scale !== undefined) {
36
const scaled = scaleChannels.get(scale);
37
const {percent, transform = percent ? x => x * 100 : undefined} = options[scale] || {};
38
- if (transform !== undefined) channel.value = Array.from(channel.value, transform);
+ if (transform != null) channel.value = Array.from(channel.value, transform);
39
if (scaled) scaled.push(channel);
40
else scaleChannels.set(scale, [channel]);
41
}
0 commit comments