Skip to content

Rolling my own data visualization with Haskell’s Diagrams package 📊

License

Notifications You must be signed in to change notification settings

gjoncas/Haskell-DataViz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Visualization in Haskell

Haskell’s Diagrams package lets you create vector images with Haskell code and compile them on the command line.

While I’m quite comfortable with Ti𝑘Z, it leaves a lot to be desired — code is limited to for-loops, the only data structure is lists or makeshift tuples, and it’s a nightmare to upload data. Moreover, generalizing the code makes it into an unreadable monstrosity.

Conversely, Haskell is far more modular, and uses a declarative style whose intuitions are based on vectors rather than a Cartesian grid. Most interesting of all is the idea of integrating it with other applications, such as Euterpea for music, or mathematical modelling.

This repo will mainly replicate nice data visualizations made with other software.
My main goal is to learn to make detailed diagrams like these, but calibrated to real data.

Updates

pie chart
Hollow pie chart – customizable colors, percentages, labels, and center text
2020.07.11: Finished.

multi-pie chart
Multiple partial pie charts – customizable colors, percentages, labels, and center text
2020.07.17: Finished. [e.g. percentage of days that you do a specific task]

waffle chart
Waffle chart – customizable colors, percentages, labels, and shapes
2020.09.21: Finished. [nice when percentages are integers]

coxcomb chart
Nightingale chart – customizable colors, percentages, and labels
2020.11.18: Finished. [e.g. mortality rates from various causes]

About

Rolling my own data visualization with Haskell’s Diagrams package 📊

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published