website_next: snapshot

This commit is contained in:
nym21
2026-07-03 21:06:32 +02:00
parent e0a618837e
commit 10ef95497f
73 changed files with 2241 additions and 733 deletions
+24
View File
@@ -0,0 +1,24 @@
import { renderAreaPlot } from "./area/index.js";
import { renderBarPlot } from "./bar/index.js";
import { renderDotsPlot } from "./dots/index.js";
import { renderLinePlot } from "./line/index.js";
import { renderStackedPlot } from "./stacked/index.js";
/**
* @param {ChartView} view
* @param {PlotContext} context
*/
export function renderPlot(view, context) {
switch (view) {
case "line":
return renderLinePlot(context);
case "area":
return renderAreaPlot(context);
case "bar":
return renderBarPlot(context);
case "dots":
return renderDotsPlot(context);
case "stacked":
return renderStackedPlot(context);
}
}