Skip to content

Releases: swiftviz/SwiftViz

Scales and Ticks release

11 Mar 23:34
Compare
Choose a tag to compare

If you were looking at previous versions, this is a notably breaking change where we re-worked most of the API around scales and generated tick marks (and labelled values) associated with such scales. The scales are collapsed, more heavily using generics, and prepared for supporting scaling functions that don't have tick marks associated with them - such as interpolating through a color range or radius size for a circular mark.

The library additionally has a new dependency on swift-numerics to support both interpolation as well as an implementation of "nice" values for generating output tick values that are more visually pleasing.

As a last update set to this, ticks and the labels were separate in previous versions, where now Ticks are generic and have a default label mechanism to support providing a label from a tick, potentially with a formatter that you provide.

These are base constructs and pieces to building further visualization tools, and not considered in any final form. Additional scales, and additional scaling capabilities as well as data structures that support additional visualizations (such as histograms and binning) may get added in the future. This provides an API footprint to test and work from for further iteration consideration.