package chartjs
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=370fbff01351b354a7947dfc44fd6bda49306f1b9b8712395bcd3651269af27b
sha512=19aebed340aaf2084a126bc28e0aabad490bb361a7b055b506e7a930576098ec6e48775057c2fbce68a12b86576586df2b982381f5639706725c7a12d4780c50
Description
This library provides OCaml bindings for the Chart.js charting library and some popular plugins.
Added to opam-repository:
README
chartjs-ocaml: OCaml bindings for Chart.js
This library provides OCaml bindings for the Chart.js charting library and some popular plugins.
Following chart types are currently supported:
- Line
- Bar
- Horizontal bar
- Pie
- Doughnut
Installation
Opam
Install the library and its dependencies via OPAM
opam install chartjsManual
dune build @install
dune installUsage
Please notice that chartjs-ocaml just provides bindings for the Chart.js library and its most popular plugins, so be sure to include corresponding javascript files to your web application, like:
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>Basic usage examples can be found in the examples directory.
Contents of the distribution
Filename | Description |
|---|---|
README | this file |
LICENSE | license and copyright notice |
lib/ | bindings for the Chart.js core library |
plugins/streaming | bindings for the chartjs-plugin-streaming |
plugins/datalabels | bindings for the chartjs-plugin-datalabels |
plugins/annotation | bindings for the chartjs-plugin-annotation |
plugins/colorschemes | bindings for the chartjs-plugin-colorschemes |
examples/ | basic library usage examples |
Dependencies (4)
- js_of_ocaml-ppx
- js_of_ocaml
-
dune
>= "1.11" -
ocaml
>= "4.08.0"
Dev Dependencies
None
Conflicts
None
Build status
Results of building chartjs with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. 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 |
|---|---|---|---|---|---|
| 0.2.2 (this version) | good | 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