arXiv:2611.02198stat.CONov 2026

Manuscript Offprint

arXiv:2611.02198

Eunoia: Area-Proportional Euler and Venn Diagrams in Rust, Julia, Python, R, and JavaScript

Johan Larsson, Nicole M. Lee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Summary

Eunoia is a Rust library (Larsson, 2026) for area-proportional Euler and Venn diagrams. Given the sizes of a collection of sets and their intersections, it fits a diagram of circles, ellipses, squares, or rectangles whose overlapping areas match those quantities as closely as possible. When an exact representation does not exist, Eunoia returns the fitted layout with residuals and goodness-of-fit statistics that help users assess how well it represents the data. The Rust crate also powers an R package (eulerr), a Python package, a Julia package, a JavaScript package compiled to WebAssembly, a C API for further bindings, and a web app built on the JavaScript package. All bindings call the same implementation and produce the same layout given the same specification, options, and seed.