plot charts for all statistical tables

#466
This commit is contained in:
Hamid Reza Mohammadi 2025-01-31 18:36:47 +03:30
parent e4f923caa5
commit 233cfee0b0

View File

@ -1741,7 +1741,7 @@ function switchTab(evt, tabId) {
}
function persianToEnglishNumber(str) {
str = str.replace('٬', '');
str = str.replace(/٬/g, '');
const persianDigits = '۰۱۲۳۴۵۶۷۸۹';
return str.replace(/[۰-۹]/g, d => persianDigits.indexOf(d));
}