squiggle/foretold/components/showcase/entries/Showcase_Charts.re

18 lines
507 B
ReasonML
Raw Normal View History

2022-01-12 07:33:04 +00:00
[@bs.module] external data1: Js.Json.t = "./samples/sample-measurements.json";
[@bs.module]
external data2: Js.Json.t = "./samples/sample-measurements-aggregation.json";
let chart1 = () => <div> <RePercentilesChart data=data1 /> </div>;
let chart2 = () => <div> <RePercentilesChart data=data2 /> </div>;
let entries =
EntryTypes.[
folder(
~title="Charts",
~children=[
entry(~title="Chart 1", ~render=chart1),
entry(~title="Chart 2", ~render=chart2),
],
),
];