(async () => {
const charts = await Promise.all([
vegalite({
data: { url: "https://gist.githubusercontent.com/mbostock/5870a43c73b8899213019ded657840bd/raw/469d70043a0e0e11adba24f5390d147c9970046e/cars.csv" },
mark: "point",
width: 380,
height: 360,
autosize: "fit",
encoding: {
x: { field: "Horsepower", type: "quantitative" },
y: { field: "Miles_per_Gallon", type: "quantitative" },
color: { field: "Miles_per_Gallon", type: "quantitative", scale: { range: getColorsFromHcl('#077A9D', hclC7, hclL7, 7) } }
},
config: {background: "#11171C"}
}),
vegalite({
data: { url: "https://gist.githubusercontent.com/mbostock/5870a43c73b8899213019ded657840bd/raw/469d70043a0e0e11adba24f5390d147c9970046e/cars.csv" },
mark: "point",
width: 380,
height: 360,
autosize: "fit",
encoding: {
x: { field: "Horsepower", type: "quantitative" },
y: { field: "Miles_per_Gallon", type: "quantitative" },
color: { field: "Miles_per_Gallon", type: "quantitative", scale: { range: getColorsFromHcl('#077A9D', hclC9.slice(1), hclL9.slice(1), 8) } }
},
config: {background: "#11171C"}
}),
vegalite({
data: { url: "https://gist.githubusercontent.com/mbostock/5870a43c73b8899213019ded657840bd/raw/469d70043a0e0e11adba24f5390d147c9970046e/cars.csv" },
mark: "point",
width: 380,
height: 360,
autosize: "fit",
encoding: {
x: { field: "Horsepower", type: "quantitative" },
y: { field: "Miles_per_Gallon", type: "quantitative" },
color: { field: "Miles_per_Gallon", type: "quantitative", scale: { range: getColorsFromHcl('#077A9D', hclC9.slice(1, -1), hclL9.slice(1, -1), 7) } }
},
config: {background: "#11171C"}
})
]);
return html`<div style="display: flex;">${charts}</div>`;
})();