Skip to content

Commit b9cb875

Browse files
Filmbostock
andauthored
apply fx/fy transform option (#1177)
* apply fx/fy transform option closes #1176 * inline function * applyScaleTransforms * fix fx label in the test * PrETtier Co-authored-by: Mike Bostock <[email protected]>
1 parent 558bcdc commit b9cb875

File tree

4 files changed

+938
-0
lines changed

4 files changed

+938
-0
lines changed

src/plot.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ export function plot(options = {}) {
7070
facetChannels = {};
7171
if (x != null) {
7272
const fx = Channel(facetData, {value: x, scale: "fx"});
73+
applyScaleTransforms({fx}, options);
7374
facetChannels.fx = fx;
7475
channelsByScale.set("fx", [fx]);
7576
}
7677
if (y != null) {
7778
const fy = Channel(facetData, {value: y, scale: "fy"});
79+
applyScaleTransforms({fy}, options);
7880
facetChannels.fy = fy;
7981
channelsByScale.set("fy", [fy]);
8082
}

0 commit comments

Comments
 (0)