© 2026 Hedgehog Software, LLC
OrdersChart
AdminPanelProvider::widgets()
// OrdersChart return [ 'datasets' => [ 'label' => 'Bestellungen', 'data' => $data->map(fn (TrendValue $value) => $value->aggregate), ], 'labels' => $data->map(fn (TrendValue $value) => $value->date), ];
Alpine Expression Error: s.data.datasets.forEach is not a function Expression: "function () { this.initChart(), this.$wire.$on("updateChartData", ({data: i}) => { mn = this.getChart(), mn.data = i, mn.update("resize") }), Alpine.effect(() => { Alpine.store("theme"), this.$nextTick(() => { this.getChart().destroy(), this.initChart() }) }), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => { Alpine.store("theme") === "system" && this.$nextTick(() => { this.getChart().destroy(), this.initChart() }) }) }"
s.data.datasets
function td(s, t)
'datasets' => [ [ // <--- this one!!! 'label' => 'Bestellungen', 'data' => $data->map(fn (TrendValue $value) => $value->aggregate), ], ], 'labels' => $data->map(fn (TrendValue $value) => $value->date),