Skip to content

Commit 503ea7b

Browse files
authored
Merge pull request #658 from ccnmtl/ERD-359
Only have calculated correlation; remove tick numbers
2 parents bbf507f + 56c3d6e commit 503ea7b

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

media/js/src/simulations/simulation1/simulationOne.jsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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">

media/scss/_rangescale.scss

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@
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;
@@ -69,14 +61,6 @@
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;

0 commit comments

Comments
 (0)