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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user