Merge pull request #31 from NunoSempere/opinionatedQualityOfLife

Makes four opinionated changes which improve my user experience:
This commit is contained in:
Ozzie Gooen 2020-04-20 17:18:00 +01:00 committed by GitHub
commit ad42a1d404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 7 deletions

View File

@ -171,7 +171,7 @@ let make = () => {
~schema,
~onSubmit=({state}) => {None},
~initialState={
guesstimatorString: "40 to 8000",
guesstimatorString: "mm(normal(10, 2), uniform(16, 20), normal(15,1))",
domainType: "Complete",
xPoint: "50.0",
xPoint2: "60.0",

View File

@ -264,7 +264,7 @@ module DistPlusChart = {
yMaxContinuousDomainFactor
?discrete
?continuous
color={`hex("5f6b7e")}
color={`hex("1894d6")}
onHover
timeScale
/>;
@ -291,7 +291,7 @@ module IntegralChart = {
minX
maxX
?continuous
color={`hex("5f6b7e")}
color={`hex("1894d6")}
timeScale
onHover
/>;

View File

@ -30,10 +30,12 @@ let changeHeight = (currentHeight, foo: [ | `increment | `decrement]) =>
| (2, `decrement) => 1
| (3, `decrement) => 2
| (4, `decrement) => 3
| (5, `decrement) => 4
| (1, `increment) => 2
| (2, `increment) => 3
| (3, `increment) => 4
| (4, `increment) => 4
| (4, `increment) => 5
| (5, `increment) => 5
| _ => 1
};
@ -43,6 +45,7 @@ let heightToPix =
| 2 => 140
| 3 => 240
| 4 => 340
| 5 => 440
| _ => 140;
let distributionReducer = (index, state: list(chartConfig), action) => {
@ -69,7 +72,7 @@ let distributionReducer = (index, state: list(chartConfig), action) => {
| (ADD_DIST, Some(_)) =>
E.L.append(
state,
[{yLog: false, xLog: false, isCumulative: false, height: 2}],
[{yLog: false, xLog: false, isCumulative: false, height: 4}],
)
| _ => state
};
@ -103,7 +106,6 @@ let init = {
showParams: false,
showPercentiles: true,
distributions: [
{yLog: false, xLog: false, isCumulative: false, height: 2},
{yLog: false, xLog: false, isCumulative: true, height: 1},
{yLog: false, xLog: false, isCumulative: false, height: 4},
],
};