mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 04:26:59 +01:00
The revenue-over-time exception (#627) was to lift "when ChartKit stacks areas, or when ColumnChart thins period labels". 0.7.0 does the second: ColumnChart prints year labels whole and steps every second (third, ...) back on a narrow plot. - RevenueAreaChart (recharts stacked area, loaded client-only) becomes RevenueByYearChart: ChartKit's stacked ColumnChart, rendered on the server in de-CH, one column per booked year, the five categories stacked. At 390px eleven years read "2015 2018 2021 2024"; the table behind the chart keeps every figure. - REVENUE_CATEGORY_COLORS goes: only the area chart used it. - year-over-year-by-category stays an exception, its reason restated for 0.7.0: the label cut is gone, but ColumnPoint still has no tone, so the sign of each change would lose its colour. recharts and ChartWrapper stay for that one chart. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>
26 lines
1.0 KiB
JSON
26 lines
1.0 KiB
JSON
{
|
|
"blocks": {
|
|
"charts": {
|
|
"package": "@bitbaum/chartkit",
|
|
"bindings": [
|
|
{
|
|
"file": "src/components/analyse/charts/RevenueByYearChart.tsx",
|
|
"symbols": ["ColumnChart"]
|
|
},
|
|
{
|
|
"file": "src/components/analyse/charts/RevenuePieChart.tsx",
|
|
"symbols": ["DoughnutChart"]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"exceptions": {
|
|
"year-over-year-by-category": {
|
|
"package": "@bitbaum/chartkit",
|
|
"status": "product-owned",
|
|
"files": ["src/components/analyse/charts/TrendBarChart.tsx"],
|
|
"reason": "Previous vs current year side by side for each revenue category, the current-year bar coloured by the sign of the change (up, down, unchanged). ChartKit 0.7.0's ColumnChart now prints category labels whole (the eight-character cut is gone), but a series still has one colour: ColumnPoint has no tone, so the direction of each change would be lost. BarChart rows take a tone but draw one series, so they cannot pair two years. Migrate when ColumnChart takes a per-point tone."
|
|
}
|
|
}
|
|
}
|