Fix chart data labels RTL alignment issue

- Force LTR direction on chart canvas elements via CSS
- Add locale: 'en-US' to chart options for consistent number formatting
- Add textDirection: 'ltr' to datalabels and tooltip configs
- Fixes background/text misalignment in Arabic RTL mode
This commit is contained in:
fahed
2026-02-03 16:40:30 +03:00
parent 0c7987493e
commit afe276541f
2 changed files with 14 additions and 1 deletions

View File

@@ -1990,3 +1990,12 @@ html[dir="rtl"] .chart-export-btn.visible {
width: 100%;
height: 100%;
}
/* Force LTR for chart canvas - fixes RTL label alignment issues */
.chart-canvas-wrapper,
.chart-canvas-wrapper canvas,
.chart-container canvas,
.exportable-chart canvas {
direction: ltr !important;
text-align: left !important;
}