squiggle/showcase/entries/Continuous.re
2020-02-17 21:52:21 +00:00

19 lines
435 B
ReasonML

open ForetoldComponents.Base;
let data: DistributionTypes.xyShape = {
xs: [|0.2, 20., 80., 212., 330.|],
ys: [|0.0, 0.3, 0.5, 0.2, 0.1|],
};
let alerts = () =>
<div>
<div> <ChartWithNumber data color={`hex("333")} /> </div>
<div>
<ChartWithNumber
data={data |> Shape.XYShape.integral}
color={`hex("333")}
/>
</div>
</div>;
let entry = EntryTypes.(entry(~title="Pdf", ~render=alerts));