Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raheelahmad/Swift-D3-Charts
Replicating D3 Charts with Swift Charts
https://github.com/raheelahmad/Swift-D3-Charts
Last synced: about 1 month ago
JSON representation
Replicating D3 Charts with Swift Charts
- Host: GitHub
- URL: https://github.com/raheelahmad/Swift-D3-Charts
- Owner: raheelahmad
- Created: 2022-08-29T06:19:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T04:49:23.000Z (5 months ago)
- Last Synced: 2024-07-15T05:51:27.744Z (5 months ago)
- Language: Swift
- Size: 165 KB
- Stars: 87
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-swift-charts - Reproducing some D3 Charts with Swift Charts
- awesome-swift-charts - Reproducing some D3 Charts with Swift Charts
README
# Reproducing some D3 Charts with Swift Charts
[D3](https://d3js.org) is a powerful library for visualizing information. A common use case is building very flexible charting solutions.
I learnt Apple's [Swift Charts](https://developer.apple.com/documentation/charts) while building the statistics view for my music app [Muziqi for iOS](https://sakunlabs.com/muziqi).
But then I wanted to take the library for a more serious spin, and see how much of the common D3 visualizations I could faithfully replicate.This macOS project is a sample of my efforts. I would say I got close to 99% there, and the rest 1% was me wanting to wrap up my timebox on this project, rather than Swift Charts' shortcomings.
## Histogram
## Area
## Band Chart
## Area Difference
## Diverging Chart
https://github.com/raheelahmad/Swift-D3-Charts/assets/54114/41ce63ee-ff3e-41af-8936-506fe4be8930
## Horizontal Bar Chart
## Bar Chart Transitions
https://github.com/raheelahmad/Swift-D3-Charts/assets/54114/659168bb-5a45-4f1e-a599-563c13a51889
## Bee Swarm
## Box Plot