Swiftpack.co - swiftviz/Scale as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by swiftviz.
swiftviz/Scale 0.7.5
Scale types usable for visualization, inspired by D3
⭐️ 4
🕓 9 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/swiftviz/Scale.git", from: "0.7.5")




Scale and related types to support creating visualizations. Loosely based on the APIs and mechanisms created by Mike Bostock and contributors to D3.js

Build and test

git clone https://github.com/swiftviz/scale
cd scale
swift test -v

Generate documentation images for the included color scales

cd utils
swift run GenerateDocImages

then optionally move the files into the DocC resources directory:

mv *.png ../Sources/SwiftVizScale/Documentation.docc/Resources/


Stars: 4
Last commit: 9 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Incremental update
9 weeks ago

What's Changed

The major additions are:

  • color interpolations and new scales to support interpolated colors, including facilities to interpolate within the LCH color space.
  • basic histogram and binning support
  • initial setup for Date oriented scales and relevant date "ticks" and logic for associated 'nice' values.

Full Changelog: https://github.com/swiftviz/Scale/compare/0.7.0...0.7.5

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics