Step 3 of the analytics plan: - Zusammensetzung: treemap (chartjs-chart-treemap 4.2.2, vendored) with the queried node's children and, nested, their children; clicking a tile drills down to that level - Jahresvergleich: one line per year over Jan-Dec, monthly or cumulative - Jahre im Vergleich: category x year table, cells shaded by monthly average (so the running year compares fairly), change vs. the same months of the previous year, clickable rows; replaces both heatmap and table from the plan - ExpenseAnalysis returns year profiles, the category x year table and the two-level composition; StackedBarChart becomes a generic ChartJsChart - Click hints only show when something can be drilled into; the treemap cursor only changes over clickable tiles; zero cells show "-" Fix: choosing a year in Von/Bis started an endless navigation loop (FluentSelect re-reports its value on every re-render, before the new URL has been applied), so the page stopped updating. The handlers now take over the year immediately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 lines
287 B
Text
6 lines
287 B
Text
@* Chart.js chart (wwwroot/js/charts.js). Created once; a new Data object is pushed as an in-place
|
|
update so the chart animates instead of being rebuilt. *@
|
|
|
|
<div class="chart-box" style="height: @Height">
|
|
<canvas @ref="canvas" role="img" aria-label="@AriaLabel"></canvas>
|
|
</div>
|