vegalite({
data: {url: "https://gist.githubusercontent.com/mbostock/14613fb82f32f40119009c94f5a46d72/raw/d0d70ffb7b749714e4ba1dece761f6502b2bdea2/aapl.csv"},
mark: {type: "line", interpolate: "step"},
width,
height: 360,
autosize: "fit",
encoding: {
x: {
field: "date",
type: "temporal",
axis: {tickCount: 5, title: "Year", format: "%Y"}
},
y: {
field: "close",
type: "quantitative",
axis: {format: "$f", title: "AAPL Close"}
}
}
})