Skip to content

raheelahmad/Swift-D3-Charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reproducing some D3 Charts with Swift Charts

D3 is a powerful library for visualizing information. A common use case is building very flexible charting solutions.

I learnt Apple's Swift Charts while building the statistics view for my music app Muziqi for iOS. 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

Screenshot of Charts 01 at Jul 5, 2024 at 10_15_40 PM

Area

Screenshot of Charts 01 at Jul 5, 2024 at 10_03_41 PM

Band Chart

Screenshot of Charts 01 at Jul 5, 2024 at 10_04_14 PM

Area Difference

Screenshot of Charts 01 at Jul 5, 2024 at 10_05_30 PM

Diverging Chart

Screen.Recording.of.Charts.01.at.Jul.5.2024.at.10_06_38.PM.mov

Horizontal Bar Chart

Screenshot of Safari at Jul 5, 2024 at 10_07_02 PM

Bar Chart Transitions

Screen.Recording.of.Charts.01.at.Jul.5.2024.at.10_07_49.PM.mov

Bee Swarm

Screenshot of Charts 01 at Jul 5, 2024 at 10_08_16 PM

Box Plot

Screenshot of Charts 01 at Jul 5, 2024 at 10_08_38 PM

About

Replicating D3 Charts with Swift Charts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages