Skip to content

Commit 5e37062

Browse files
committed
format commit (just to get CI to work)
1 parent db7c46f commit 5e37062

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

test/plots/driving-animation.js

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

4-
export default async function() {
4+
export default async function () {
55
const driving = await d3.csv("data/driving.csv", d3.autoType);
66
const chart = Plot.plot({
77
inset: 10,
88
grid: true,
99
marks: [
10-
Plot.line(driving, {x: "miles", y: "gas", time: "year", timeFilter: "lte"})
10+
Plot.line(driving, {
11+
x: "miles",
12+
y: "gas",
13+
time: "year",
14+
timeFilter: "lte"
15+
})
1116
]
1217
});
1318

1419
// for CI tests
1520
chart.snapshots = [2009.3];
1621

1722
// animate on click
18-
d3.select(chart).on("click", () => chart.paused ? chart.play() : chart.pause());
23+
d3.select(chart).on("click", () =>
24+
chart.paused ? chart.play() : chart.pause()
25+
);
1926

2027
return chart;
2128
}

0 commit comments

Comments
 (0)