Skip to content

Commit fbce8aa

Browse files
committed
remove redundant tickFormat
1 parent 3cfcd21 commit fbce8aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/plots/interval-aware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ export async function intervalAwareBin() {
1212
export async function intervalAwareGroup() {
1313
const olympians = await d3.csv<any>("data/athletes.csv", d3.autoType);
1414
return Plot.plot({
15-
x: {tickFormat: "%Y", interval: "5 years"},
15+
x: {interval: "5 years"},
1616
marks: [Plot.barY(olympians, Plot.groupX({y: "count"}, {x: "date_of_birth"}))]
1717
});
1818
}
1919

2020
export async function intervalAwareStack() {
2121
const olympians = await d3.csv<any>("data/athletes.csv", d3.autoType);
2222
return Plot.plot({
23-
x: {tickFormat: "%Y", interval: "5 years"},
23+
x: {interval: "5 years"},
2424
marks: [Plot.barY(olympians, {x: "date_of_birth", y: 1})]
2525
});
2626
}

0 commit comments

Comments
 (0)