G’day @kip - I’ve been watching your image library with interest, and thanks for the tip on generating SVGs - I was fiddling around with resvg in Rust. Fonts and performance for large plots were giving me a fair bit of grief, so it was parked up, but I’ll take a look at your approach.
With histograms, I was originally looking at approaching it by having some kind of stats transformers to create the right summary Context.Datasets (e.g. cumulative stats for histograms, percentiles per data group for box plots, variograms) from an input Context.Dataset. But the data analysis space in Elixir has moved on since I started out. I’m thinking now that it may be better to define a protocol that the graphical side of Contex can consume in order to allow other data sources as inputs (e.g. Explorer). If you’re pre-calculating the colour counts from the images anyway I don’t think you will need to worry about this for now.
Anyway, that’s separate from the area chart question. I don’t have it on the roadmap as yet, but it would be most similar to a LinePlot from a layout algorithm PoV, but with a bit of data pre-processing to calculate the stacks, closure of the polylines and probably some better styling with gradient fills. I’d appreciate a PR if you’re happy to take it on. I’ll be on the road a bit the next week or so and may or may not have decent internet, but happy to provide input as needed when I can.






















