Creating charts and diagrams
The libraries in this subsection are as follows:
Chart, Chart-cairo, Chart-diagrams: Rendering 2D charts in Haskell. Supports multiple backends, including Cairo and diagrams.
Diagrams: Declaratively generating vector graphics. Supports multiple outputs including Cairo, SVG, PS, and more.
There are two excellent libraries for creating 2D graphics in Haskell: chart
and diagrams
. The first one is geared towards charting and plotting, whereas the latter is more on EDSL for generative vector graphics.
Both libraries support a wide range of output formats, from vector graphic formats to output directly to GTK windows. Chart
even provides some primitive supports for interactivity in charts.