@@ -68,13 +68,13 @@ const ChartVisualization = ({
68
68
}
69
69
}
70
70
71
- // Determinar se é time series de forma mais rigorosa
71
+ // Determine if it's time series more rigorously
72
72
// Time series if: we have multiple columns AND at least one column is a date
73
73
let isTimeSeries = false ;
74
74
let dateColumnName = null ;
75
75
let dateColumnIndex = - 1 ;
76
76
77
- // Procurar por qualquer coluna de data na seleção (não apenas a primeira )
77
+ // Look for any date column in the selection (not just the first )
78
78
if ( colEnd > colStart && columns ) {
79
79
for ( let colIndex = colStart ; colIndex <= colEnd ; colIndex ++ ) {
80
80
const columnName = order [ colIndex ] ?. name ;
@@ -106,7 +106,7 @@ const ChartVisualization = ({
106
106
}
107
107
}
108
108
109
- if ( dateCount >= totalRows * 0.6 ) { // 60% devem ser datas válidas
109
+ if ( dateCount >= totalRows * 0.6 ) { // 60% must be valid dates
110
110
isTimeSeries = true ;
111
111
dateColumnName = columnName ;
112
112
dateColumnIndex = colIndex ;
@@ -117,13 +117,13 @@ const ChartVisualization = ({
117
117
}
118
118
119
119
if ( isTimeSeries && colEnd > colStart ) {
120
- // Time Series: usar a coluna de data encontrada, outras são números
120
+ // Time Series: use the found date column, others are numbers
121
121
const datasets = [ ] ;
122
122
let datasetIndex = 0 ;
123
123
124
124
// Create a dataset for each numeric column (except the date column)
125
125
for ( let colIndex = colStart ; colIndex <= colEnd ; colIndex ++ ) {
126
- // Pular a coluna de data
126
+ // Skip the date column
127
127
if ( colIndex === dateColumnIndex ) {
128
128
continue ;
129
129
}
@@ -202,7 +202,7 @@ const ChartVisualization = ({
202
202
}
203
203
} ;
204
204
} else {
205
- // Number Series: apenas valores numéricos
205
+ // Number Series: only numeric values
206
206
const labels = [ ] ;
207
207
const dataPoints = [ ] ;
208
208
@@ -478,7 +478,7 @@ const ChartVisualization = ({
478
478
// Bar ou Line Chart
479
479
const ChartComponent = chartType === 'bar' ? Bar : Line ;
480
480
481
- // Melhorar as opções para dimensionamento correto
481
+ // Improve options for correct sizing
482
482
const enhancedOptions = {
483
483
...chartData . options ,
484
484
responsive : true ,
0 commit comments