Skip to content

Commit c010833

Browse files
committed
add vertical tests
1 parent 936bdd8 commit c010833

File tree

3 files changed

+152
-0
lines changed

3 files changed

+152
-0
lines changed

test/output/denseIntervalAreaX.svg

Lines changed: 64 additions & 0 deletions
Loading

test/output/denseIntervalLineX.svg

Lines changed: 64 additions & 0 deletions
Loading

test/plots/dense-interval.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,27 @@ export async function denseIntervalLineY() {
1414
marks: [Plot.lineY(aapl, {x: "Date", reduce: "count", interval: "month"})]
1515
});
1616
}
17+
18+
export async function denseIntervalAreaX() {
19+
return Plot.areaX(
20+
{length: 1000},
21+
{
22+
y: d3.randomNormal.source(d3.randomLcg(42))(),
23+
reduce: "count",
24+
interval: 0.5,
25+
curve: "basis"
26+
}
27+
).plot({width: 200});
28+
}
29+
30+
export async function denseIntervalLineX() {
31+
return Plot.lineX(
32+
{length: 1000},
33+
{
34+
y: d3.randomNormal.source(d3.randomLcg(42))(),
35+
reduce: "count",
36+
interval: 0.5,
37+
curve: "basis"
38+
}
39+
).plot({width: 200});
40+
}

0 commit comments

Comments
 (0)