Skip to content

expose instantiated scales descriptors in the render API #1810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Aug 16, 2023
Prev Previous commit
Next Next commit
revert
  • Loading branch information
Fil committed Aug 16, 2023
commit ebc160488eb415db8926c4c4b283b456f0014932
15 changes: 0 additions & 15 deletions test/scales/scales-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2102,21 +2102,6 @@ it("plot(…).scale(name).apply and invert return the expected functions", () =>
]);
});

it("plot(…).scale(name) returns a deduplicated domain", () => {
const letters = "abbbcaabbcc";
const plot = Plot.dotX(letters).plot({x: {domain: letters}});
scaleEqual(plot.scale("x"), {
align: 0.5,
bandwidth: 0,
domain: ["a", "b", "c"],
padding: 0.5,
range: [20, 620],
round: true,
step: 200,
type: "point"
});
});

// Given a plot specification (or, as shorthand, an array of marks or a single
// mark), asserts that the given named scales, when materialized from the first
// plot and used to produce a second plot, produce the same output and the same
Expand Down