@@ -121,6 +121,7 @@ const BarGraph = props => {
121
121
for ( let i = 0 ; i < saveButtons . length ; i ++ ) {
122
122
if ( tabs [ currentTab ] . seriesSavedStatus === 'saved' ) {
123
123
saveButtons [ i ] . classList . add ( 'animate' ) ;
124
+ console . log ( 'checking saveButtons[i].classList' , saveButtons [ i ] . classList )
124
125
saveButtons [ i ] . innerHTML = 'Saved!' ;
125
126
} else {
126
127
saveButtons [ i ] . innerHTML = 'Save Series' ;
@@ -142,6 +143,7 @@ const BarGraph = props => {
142
143
dispatch ( save ( toStorage ) ) ;
143
144
} ;
144
145
146
+ // FTRI9 note - need to ensure text box is not empty before saving
145
147
const textbox = tabs [ currentTab ] . seriesSavedStatus === 'inputBoxOpen' ? < input type = "text" id = "seriesname" placeholder = "Enter Series Name" onChange = { e => setSeriesNameInput ( e . target . value ) } /> : null ;
146
148
return (
147
149
< div className = "bargraph-position" >
@@ -171,6 +173,23 @@ const BarGraph = props => {
171
173
) ) }
172
174
</ select >
173
175
</ form >
176
+ < form className = "routesForm" id = "routes-formcontrol" >
177
+ < label id = "routes-dropdown" > Select Snapshot: </ label >
178
+ < select
179
+ labelId = "demo-simple-select-label"
180
+ id = "routes-select"
181
+ onChange = { e => setSnapshot ( e . target . value ) }
182
+ >
183
+ < option >
184
+ All Snapshots
185
+ </ option >
186
+ { filteredSnapshots . map ( route => (
187
+ < option className = "routes" >
188
+ { route . snapshotId }
189
+ </ option >
190
+ ) ) }
191
+ </ select >
192
+ </ form >
174
193
</ div >
175
194
< svg ref = { containerRef } width = { width } height = { height } >
176
195
< rect
@@ -202,6 +221,9 @@ const BarGraph = props => {
202
221
color = { colorScale }
203
222
>
204
223
{ barStacks => barStacks . map ( barStack => barStack . bars . map ( ( bar , idx ) => {
224
+ console . log ( width , '<-- width' ) ;
225
+ console . log ( height , '<-- height' ) ;
226
+ console . log ( bar , '<-- bar' ) ;
205
227
// Hides new components if components don't exist in previous snapshots.
206
228
if ( Number . isNaN ( bar . bar [ 1 ] ) || bar . height < 0 ) {
207
229
bar . height = 0 ;
0 commit comments