File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/firefly/js/templates/lightcurve Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -508,6 +508,7 @@ function setPFTableSuccess(hideDropDown = false) {
508
508
dispatchTableSearch ( tReq , { removable : false } ) ;
509
509
510
510
let xyPlotParams = {
511
+ userSetBoundaries : { xMax : 2 } ,
511
512
x : { columnOrExpr : 'phase' , options : 'grid' } ,
512
513
y : { columnOrExpr : 'w1mpro_ep' , options : 'grid' }
513
514
} ;
@@ -604,15 +605,10 @@ function computePeriodRange(tbl_id, timeColName) {
604
605
var min , max ;
605
606
606
607
tIdx = columns . findIndex ( ( col ) => ( col . name === timeColName ) ) ;
607
- data . forEach ( ( dRow ) => {
608
- var dTime = dRow [ tIdx ] ;
609
608
610
- if ( dTime > maxTime ) {
611
- maxTime = dTime ;
612
- } else if ( dTime < minTime ) {
613
- minTime = dTime ;
614
- }
615
- } ) ;
609
+ let arr = [ ] ; data . map ( ( e ) => arr . push ( e [ tIdx ] ) ) ;
610
+ minTime = Math . min ( ...arr ) ;
611
+ maxTime = Math . max ( ...arr ) ;
616
612
617
613
timeZero = minTime ;
618
614
timeMax = maxTime ;
You can’t perform that action at this time.
0 commit comments