Skip to content

Commit eb65d88

Browse files
mbostockchaichontat
authored andcommitted
test tip for primitive data (observablehq#1646)
1 parent 4960f27 commit eb65d88

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

test/output/tipDotX.svg

Lines changed: 53 additions & 0 deletions
Loading

test/plots/tip.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ export async function tipDot() {
5555
return Plot.dot(penguins, {x: "culmen_length_mm", y: "culmen_depth_mm", stroke: "sex", tip: true}).plot();
5656
}
5757

58+
export async function tipDotX() {
59+
return Plot.dotX(d3.range(10), {tip: true}).plot();
60+
}
61+
5862
export async function tipDotFacets() {
5963
const athletes = await d3.csv<any>("data/athletes.csv", d3.autoType);
6064
return Plot.plot({

0 commit comments

Comments
 (0)