Skip to content

Commit 19fb125

Browse files
author
Ben Lerner
committed
fixes #1840
The intended display is "y - y'", which should equal delta, which means `y' = y - delta`, and not `y + delta`...
1 parent 77b20e0 commit 19fb125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/trove/charts-lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@
11531153
name: 'secondary',
11541154
range: axesConfig.secondary.range,
11551155
...(axesConfig.secondary.name === 'x' ? xAxisType : yAxisType),
1156-
nice: true, zero: true,
1156+
nice: true, zero: false,
11571157
domain: (axis && isNotFullStacked) ? { signal: 'extent(domain("secondaryLabels"))' } : { data: 'table', field: 'value1' }
11581158
};
11591159
const scales = [
@@ -2613,7 +2613,7 @@
26132613
}),
26142614
})),
26152615
transform: [
2616-
{ type: 'formula', as: 'yprime', expr: 'datum.y + datum.delta' }
2616+
{ type: 'formula', as: 'yprime', expr: 'datum.y - datum.delta' }
26172617
]
26182618
},
26192619
{

0 commit comments

Comments
 (0)