Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monstasat/chartjs-ocaml
Chart.js bindings for OCaml
https://github.com/monstasat/chartjs-ocaml
Last synced: about 14 hours ago
JSON representation
Chart.js bindings for OCaml
- Host: GitHub
- URL: https://github.com/monstasat/chartjs-ocaml
- Owner: monstasat
- License: mit
- Created: 2018-11-17T20:19:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-13T21:04:09.000Z (over 3 years ago)
- Last Synced: 2024-08-03T21:02:13.691Z (3 months ago)
- Language: OCaml
- Size: 604 KB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome - chartjs-ocaml
README
# chartjs-ocaml: OCaml bindings for Chart.js
This library provides OCaml bindings for the [Chart.js][chartjs] charting library
and some popular plugins.[chartjs]: https://github.com/chartjs/Chart.js
Following chart types are currently supported:
* Line
* Bar
* Horizontal bar
* Pie
* Doughnut## Installation
### Opam
Install the library and its dependencies via [OPAM][opam][opam]: http://opam.ocaml.org
```bash
opam install chartjs
```### Manual
```bash
dune build @install
dune install
```## Usage
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:``` html
```
Basic usage examples can be found in the [examples][examples] directory.
[examples]: https://github.com/monstasat/chartjs-ocaml/tree/master/examples
## 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 |
| | |