Skip to content

Commit 29a1b51

Browse files
committed
rename to interval-aware
1 parent ff5c71f commit 29a1b51

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

src/transforms/group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function groupn(
114114
const Z = valueof(data, z);
115115
const F = valueof(data, vfill);
116116
const S = valueof(data, vstroke);
117-
const G = maybeSubgroup(outputs, {z: Z, fill: F, stroke: S}); // TODO interval?
117+
const G = maybeSubgroup(outputs, {z: Z, fill: F, stroke: S});
118118
const groupFacets = [];
119119
const groupData = [];
120120
const GX = X && setGX([]);

test/plots/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export * from "./industry-unemployment.js";
120120
export * from "./infinity-log.js";
121121
export * from "./integer-interval.js";
122122
export * from "./intern-facet.js";
123-
export * from "./interval-transform.js";
123+
export * from "./interval-aware.js";
124124
export * from "./intraday-histogram.js";
125125
export * from "./kitten.js";
126126
export * from "./learning-poverty.js";

test/plots/interval-transform.ts renamed to test/plots/interval-aware.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import * as Plot from "@observablehq/plot";
22
import * as d3 from "d3";
33

4-
export async function intervalTransformBin() {
4+
export async function intervalAwareBin() {
55
const olympians = await d3.csv<any>("data/athletes.csv", d3.autoType);
66
return Plot.plot({
77
x: {interval: 10},
88
marks: [Plot.barY(olympians, Plot.binY({fill: "count"}, {x: "weight", y: "height", inset: 0}))]
99
});
1010
}
1111

12-
export async function intervalTransformGroup() {
12+
export async function intervalAwareGroup() {
1313
const olympians = await d3.csv<any>("data/athletes.csv", d3.autoType);
1414
return Plot.plot({
1515
x: {tickFormat: "%Y", interval: "5 years"},
1616
marks: [Plot.barY(olympians, Plot.groupX({y: "count"}, {x: "date_of_birth"}))]
1717
});
1818
}
1919

20-
export async function intervalTransformStack() {
20+
export async function intervalAwareStack() {
2121
const olympians = await d3.csv<any>("data/athletes.csv", d3.autoType);
2222
return Plot.plot({
2323
x: {tickFormat: "%Y", interval: "5 years"},

0 commit comments

Comments
 (0)