Update modules/studentact/current_situation_interface.py
Browse files
modules/studentact/current_situation_interface.py
CHANGED
@@ -293,10 +293,20 @@ def display_diagnosis(metrics, text_type=None, lang_code='es', t=None):
|
|
293 |
logger.error(f"Error mostrando resultados: {str(e)}")
|
294 |
st.error(t.get('error_results', "Error al mostrar los resultados"))
|
295 |
|
|
|
|
|
296 |
def display_radar_chart(metrics_config, thresholds):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
"""
|
298 |
Muestra el gráfico radar con los resultados.
|
299 |
"""
|
|
|
300 |
try:
|
301 |
# Preparar datos para el gráfico
|
302 |
categories = [m['label'] for m in metrics_config]
|
|
|
293 |
logger.error(f"Error mostrando resultados: {str(e)}")
|
294 |
st.error(t.get('error_results', "Error al mostrar los resultados"))
|
295 |
|
296 |
+
##################################################################
|
297 |
+
##################################################################
|
298 |
def display_radar_chart(metrics_config, thresholds):
|
299 |
+
legend_translations = {
|
300 |
+
'es': {'min': 'Mínimo', 'target': 'Meta', 'user': 'Tu escritura'},
|
301 |
+
'en': {'min': 'Minimum', 'target': 'Target', 'user': 'Your writing'},
|
302 |
+
'uk': {'min': 'Мінімум', 'target': 'Ціль', 'user': 'Ваш текст'}
|
303 |
+
}
|
304 |
+
translations = legend_translations.get(lang_code, legend_translations['es'])
|
305 |
+
|
306 |
"""
|
307 |
Muestra el gráfico radar con los resultados.
|
308 |
"""
|
309 |
+
|
310 |
try:
|
311 |
# Preparar datos para el gráfico
|
312 |
categories = [m['label'] for m in metrics_config]
|