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.
Hollow pie chart – customizable colors, percentages, labels, and center text
2020.07.11: Finished.
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 – customizable colors, percentages, labels, and shapes
2020.09.21: Finished. [nice when percentages are integers]
Nightingale chart – customizable colors, percentages, and labels
2020.11.18: Finished. [e.g. mortality rates from various causes]