happy-hour- Generate simple okay-looking bar plots without much effort
Safe HaskellNone




writeBarGraphSvgFile Source #


:: FilePath

Where the file will be written. The containing directory must already exist. If there already exists a file at this path, it will be overwritten. If there exists a directory at this path, the action will fail.

-> [(String, Int)]

The data to visualize. Each list entry represents a bar on the plot, ordered from left to right. The String is the label on the X axis, and the Int is the height of the bar.

-> IO () 

Create an SVG file containing a bar graph.