File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const ChartVisualization = ({
47
47
} ) => {
48
48
const [ chartType , setChartType ] = useState ( 'bar' ) ;
49
49
50
- // Processar dados selecionados para determinar o tipo de visualização
50
+ // Process selected data to determine the type of visualization
51
51
const chartData = useMemo ( ( ) => {
52
52
// More rigorous initial validation
53
53
if ( ! selectedData || selectedData . length === 0 || ! selectedCells || ! data || ! Array . isArray ( data ) ) {
@@ -64,7 +64,7 @@ const ChartVisualization = ({
64
64
// Check if all row indices are valid
65
65
for ( let rowIndex = rowStart ; rowIndex <= rowEnd ; rowIndex ++ ) {
66
66
if ( ! data [ rowIndex ] || ! data [ rowIndex ] . attributes ) {
67
- return null ; // Dados inconsistentes, abortar
67
+ return null ; // Inconsistent data, abort
68
68
}
69
69
}
70
70
@@ -246,7 +246,7 @@ const ChartVisualization = ({
246
246
}
247
247
}
248
248
249
- // Usar os labels da primeira coluna (todas devem ter o mesmo número de linhas )
249
+ // Use labels from the first column (all should have the same number of rows )
250
250
for ( let rowIndex = rowStart ; rowIndex <= rowEnd ; rowIndex ++ ) {
251
251
labels . push ( `Row ${ rowIndex + 1 } ` ) ;
252
252
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const DraggableResizablePanel = ({
50
50
const newX = e . clientX - dragStart . x ;
51
51
const newY = e . clientY - dragStart . y ;
52
52
53
- // Limitar a posição para não sair da tela
53
+ // Limit position to not go off screen
54
54
const maxX = window . innerWidth - size . width ;
55
55
const maxY = window . innerHeight - size . height ;
56
56
@@ -112,7 +112,7 @@ const DraggableResizablePanel = ({
112
112
className = { styles . resizableContainer }
113
113
>
114
114
< div className = { styles . panelContainer } >
115
- { /* Barra de título */ }
115
+ { /* Title bar */ }
116
116
< div
117
117
ref = { titleBarRef }
118
118
className = { styles . titleBar }
@@ -134,7 +134,7 @@ const DraggableResizablePanel = ({
134
134
</ div >
135
135
</ div >
136
136
137
- { /* Conteúdo do painel */ }
137
+ { /* Panel content */ }
138
138
< div className = { styles . content } >
139
139
{ children }
140
140
</ div >
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ body:global(.expanded) {
202
202
}
203
203
}
204
204
205
- // Responsividade para o botão do gráfico
205
+ // Responsiveness for chart button
206
206
@media (max-width : 968px ) {
207
207
.stats {
208
208
right : 120px ; // Menor distância em telas médias
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export default class DataBrowser extends React.Component {
154
154
}
155
155
}
156
156
157
- // Fechar painel de gráfico se os dados mudaram (como quando ordena a tabela )
157
+ // Close chart panel if data changed (like when sorting the table )
158
158
if ( prevProps . data !== this . props . data && this . state . isChartPanelVisible ) {
159
159
this . setState ( {
160
160
isChartPanelVisible : false ,
You can’t perform that action at this time.
0 commit comments