Skip to content

mooreryan/ocaml_vg_example_plot

Repository files navigation

OCaml Vg Example Plot

A tiny example plot using OCaml, Js_of_ocaml, Brr, and Vg.

Check it out here. You can click on the plot to add dots, remove them, and save your image!

Building the site

The site is in docs so it works with GitHub pages.

To build the site, run just build_site (or simply dune build --profile=release).

Hacking

If you want to hack on it, note that I didn't bother to specify package versions for the opam file. But you could use the lock file if you want to play with it:

opam install . --deps-only --locked

In particular, this will ensure you have the pinned version of vg, which is needed to work with brr rather than the jsoo library.

JS bundle size

The generated JavaScript is 125KB (43KB gzipped). Not too bad, all things considered.

About

A small plot example using OCaml, Js_of_ocaml, Brr, and Vg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published