File tree Expand file tree Collapse file tree 3 files changed +7
-14
lines changed Expand file tree Collapse file tree 3 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ const BarGraph = props => {
140
140
}
141
141
} ) ;
142
142
143
+ // CURRENTLY DOES NOT SAVE
143
144
const saveSeriesClickHandler = ( ) => {
144
145
if ( tabs [ currentTab ] . seriesSavedStatus === 'inputBoxOpen' ) {
145
146
const actionNames = document . getElementsByClassName ( 'actionname' ) ;
@@ -153,7 +154,7 @@ const BarGraph = props => {
153
154
dispatch ( save ( toStorage ) ) ;
154
155
} ;
155
156
156
- // FTRI9 note - need to ensure text box is not empty before saving
157
+ // Need to change so textbox isn't empty before saving
157
158
const textbox = tabs [ currentTab ] . seriesSavedStatus === 'inputBoxOpen' ? < input type = "text" id = "seriesname" placeholder = "Enter Series Name" onChange = { e => setSeriesNameInput ( e . target . value ) } /> : null ;
158
159
return (
159
160
< div className = "bargraph-position" >
Original file line number Diff line number Diff line change @@ -254,15 +254,14 @@ const PerformanceVisx = (props: BarStackProps) => {
254
254
data . barStack = filteredSnapshots ;
255
255
}
256
256
257
- if ( snapshot !== 'All Snapshots' ) {
258
- // filter barStack to make it equal to an array of length 1 with object matching snapshot ID
259
257
258
+ if ( snapshot !== 'All Snapshots' ) {
259
+ // filter barStack to make it equal to an array of length 1 with object matching snapshot ID to mirror the data.barStack object's shape
260
260
const checkData = [ data . barStack . find ( comp => comp . snapshotId === snapshot ) ] ;
261
261
const holdData = [ ] ;
262
262
// maxheight is referring to the max height in render time to choose the scaling size for graph
263
263
let maxHeight = 0 ;
264
- /* looping through checkData which is composed of a single snapshot
265
- while pushing key/values to a new object and setting maxHeight */
264
+ // looping through checkData which is composed of a single snapshot while pushing key/values to a new object and setting maxHeight
266
265
for ( const key in checkData [ 0 ] ) {
267
266
if ( key !== 'route' && key !== 'snapshotId' ) {
268
267
if ( maxHeight < checkData [ 0 ] [ key ] ) maxHeight = checkData [ 0 ] [ key ] ;
@@ -273,6 +272,8 @@ const PerformanceVisx = (props: BarStackProps) => {
273
272
holdData [ holdData . length - 1 ] . snapshotId = key ;
274
273
}
275
274
}
275
+ // maxTotalRender height of bar is aligned to y-axis
276
+ // 1.15 adjusts the numbers on the y-axis so the max bar's true height never reaches the max of the y-axis
276
277
data . maxTotalRender = maxHeight * 1.15 ;
277
278
if ( holdData ) data . barStack = holdData ;
278
279
}
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
- < < < < < < < HEAD
4
3
< head >
5
4
< meta charset ="UTF-8 " />
6
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
6
< meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
8
7
< title > Reactime 15.0</ title >
9
8
</ head >
10
- =======
11
- < head >
12
- < meta charset ="UTF-8 " />
13
- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
14
- < meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
15
- < title > Reactime 15.0</ title >
16
- </ head >
17
- > > > > > > > pocke
18
9
19
10
< body >
20
11
< div id ="root "> </ div >
You can’t perform that action at this time.
0 commit comments