File tree Expand file tree Collapse file tree 2 files changed +11
-20
lines changed
js/src/simulations/simulation1 Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -248,8 +248,12 @@ export const SimulationOne = () => {
248248 onChange = {
249249 handleYcorrelationChange } />
250250 < div className = "scale-value" >
251- < Katex tex = {
252- `${ yCorrelation } ` } />
251+ { slope !== null && (
252+ < Katex tex = {
253+ `${
254+ appRvalue . toFixed ( 3 )
255+ } `} />
256+ ) }
253257 </ div >
254258 </ div >
255259 < div className = "slider-range__scale" >
@@ -288,8 +292,11 @@ export const SimulationOne = () => {
288292 onChange = {
289293 handleXcorrelationChange } />
290294 < div className = "scale-value" >
291- < Katex tex = { `${ xCorrelation } ` }
292- />
295+ { slopes . length > 0 && (
296+ < Katex tex = { `${
297+ appRvalue3d . toFixed ( 3 ) } `
298+ } />
299+ ) }
293300 </ div >
294301 </ div >
295302 < div className = "slider-range__scale" >
Original file line number Diff line number Diff line change 4141 }
4242 & .unit :nth-child (3 ) {
4343 border-right : 0 ;
44- height : 0.5rem ;
45- & ::after {
46- content : " -0.5" ;
47- position : absolute ;
48- bottom : -1.25rem ;
49- font : 0.75rem / 1 sans-serif ;
50- margin-left : -0.75rem ;
51- }
5244 }
5345 & .unit :nth-child (4 ) {
5446 border-right : 0 ;
6961 }
7062 & .unit :nth-child (7 ) {
7163 border-right : 0 ;
72- height : 0.5rem ;
73- & ::after {
74- content : " 0.5" ;
75- position : absolute ;
76- bottom : -1.25rem ;
77- font : 0.75rem / 1 sans-serif ;
78- margin-left : -0.5rem ;
79- }
8064 }
8165 & .unit :nth-child (8 ) {
8266 border-right : 0 ;
You can’t perform that action at this time.
0 commit comments