[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] pretty charts from OCaml and js_of_ocaml



On 14 Jun 2015, at 16:27, David Scott <scott.dj@xxxxxxxxx> wrote:

Hi,

I've released an experimental OCaml binding for the _javascript_ charting library c3[1], which is built upon the well-known library d3[2]. If you're building a web application in _javascript_ via js_of_ocaml, then this could be useful to you.

Example output:


Example code:


For Mirage, I think it would be fun to extend the mirage-www's built-in stats reporting (GC live words etc) with a nice automatically-updating chart.

Good idea -- GC timings and latency distributions from Core_bench output are also a likely candidate.

Andy: this seems like a good time to figure out how to best embed HTML toplevel printers in IOCamlJS from these sorts of libraries (it also came up in the URI library, which wanted to embed a hyperlink). Are there any best practises for this in terms of ocamlfind packaging and such, or is it just a matter of building a custom toplevel formatter and calling some initialisation code in the notebook?

-anil

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.