Skip to content

Commit 3fcff3c

Browse files
committed
some more relevant reports
1 parent 9cf51d9 commit 3fcff3c

12 files changed

Lines changed: 759 additions & 365 deletions

File tree

projects/budgetkey/src/app/subject-dashboards/subject-dashboard-page/subject-dashboard-page.component.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,15 @@ div.md {
144144
border-radius: 8px;
145145
box-shadow: 0 1px 2px 0 rgba(189, 189, 189, 0.6);
146146
padding: 20px;
147+
// Mermaid's layout math (text-anchor placement, bounding-box sizing)
148+
// assumes an LTR context. The page's `dir="auto"` container resolves
149+
// to rtl for Hebrew content, and that inherits into the diagram's
150+
// <text> elements, flipping which edge text-anchor="start"/"end"
151+
// anchor to — e.g. pie chart legends end up right-anchored and
152+
// growing left into the pie instead of right, away from it. Forcing
153+
// ltr here restores the layout Mermaid actually computed; Hebrew
154+
// runs inside still bidi-reorder correctly for reading.
155+
direction: ltr;
147156

148157
svg { max-width: 100%; }
149158
}

projects/budgetkey/src/app/subject-dashboards/subject-dashboard-page/subject-dashboard-page.component.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@ function ensureMermaidInitialized(): void {
4545
pieOpacity: '0.9',
4646
pieOuterStrokeColor: '#FFFFFF',
4747
pieSectionTextColor: '#332A2A',
48+
// xychart-beta ignores primaryColor/mainBkg for its bars and background —
49+
// it only reads themeVariables.xyChart. Without this override it falls
50+
// back to mermaid's own pastel defaults (cream/salmon bars on a light-gray
51+
// plot area), which read as washed-out against the white card background.
52+
xyChart: {
53+
backgroundColor: '#FFFFFF',
54+
titleColor: '#332A2A',
55+
xAxisLabelColor: '#332A2A',
56+
xAxisTitleColor: '#332A2A',
57+
xAxisTickColor: '#665859',
58+
xAxisLineColor: '#665859',
59+
yAxisLabelColor: '#332A2A',
60+
yAxisTitleColor: '#332A2A',
61+
yAxisTickColor: '#665859',
62+
yAxisLineColor: '#665859',
63+
plotColorPalette: '#FF5A5F,#6D82B4,#3C4B7C,#9CD3FE,#495A8F,#CCC3C3',
64+
},
4865
},
4966
});
5067
mermaidInitialized = true;

projects/budgetkey/src/assets/subject-dashboards/education/central-cities.md

Lines changed: 224 additions & 0 deletions
Large diffs are not rendered by default.

projects/budgetkey/src/assets/subject-dashboards/getting-started.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

projects/budgetkey/src/assets/subject-dashboards/health-20260730-150239.md

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)