Aaron J. Radke

Aaron J. Radke (@radke)
Metron, Inc

In a professional setting, I have been using Scala for scientific data visualizations since the 2.7 era (~8 years). And have been using Data visualization tools processing (java), d3 (js) for ~15years.

Abstract

D3js patterns have been re-envisioned as typeclasses for scala to provide visual mappings for generic data types. Using types not only provides "safer" type-checked code, but can also inform important visuals encodings to remove extra boilerplate and provide simpler code.

Details

This is a quick dive illustrating some useful typeclasses for data vizualizations within scala. Some useful patterns from D3js have been re-envisioned as typeclasses within scala to easily provide visual mappings for generic data types. Using types not only provides "safer" type-checked code, but can also inform important visuals encodings to remove extra boilerplate and provide simpler code.

Practical motivation for these typeclasses came after years of using visualization libraries such as processing and D3js for scientific applications. D3js offers rich concepts to encode visualization, but lives in the javascript world. Scala has a rich typesystem that can do justice to these D3js concepts while supporting high-end execution environments.