Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=1295e56c252d53ca85bf814404e4bc40b02ba095b33cd48cd1b44d05514bae0c
sha512=a204b818dbc3e01dd4e8ceacabc70221844592b2e7163dfc7375051b921253285a38cf502e7c2cd8c613d04ceee9270408e572b43bdae4988fc164c35adec933
Description
Melange bindings for recharts JavaScript library.
README
melange-recharts
These are the Melange bindings for Recharts. 🚧 It is not completed, we are adding bindings as we go. Doesn't follow semver at this point. 🚧
Install
Install opam package manager.
Then:
opam install melange-rechartsThe bindings support the version ^2.1.12 of recharts npm package, which should be installed separately:
"dependencies": {
"recharts": "^2.1.12"
}Setup
Add melange-recharts to the libraries in your dune file:
; ...
(libraries melange-recharts)
; ...Usage Example
See Example.re;
Helpers
Some of polymorphic params are represented as a variant, list below:
module AxisInterval = {
...
type arg =
| PreserveStart
| PreserveEnd
| PreserveStartEnd
| Num(int);
...
};
module PxOrPrc = {
...
type arg =
| Px(float)
| Prc(float);
...
};
module StrOrNode = {
...
type arg =
| Str(string)
| Node(ReasonReact.reactElement);
...
};you will use it like this:
<XAxis
interval=PreserveStart
label=Str("text")
/>
<XAxis
interval=Num(12)
label=Node(
<span>
(ReasonReact.stringToElement("text"))
</span>
)
/>Check Recharts documentation for available props.
Dependencies (6)
-
reason-react-ppx
>= "0.14.0" -
reason-react
>= "0.14.0" -
reason
>= "3.10.0" -
melange
>= "3.0.0" - ocaml
-
dune
>= "3.8"
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building melange-recharts with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 4.0.3 (this version) | n/a | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure