GithubHelp home page GithubHelp logo

sumanth-bbn / swift-charts-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jordibruin/swift-charts-examples

0.0 0.0 0.0 9.77 MB

An overview of the different types of charts you can make with Swift Charts

License: MIT License

Swift 100.00%

swift-charts-examples's Introduction

Swift Charts Examples

This repo aims to provide sample code for lots of different chart types for you to use as inspiration for your own projects. We start by recreating the sample charts Apple uses in their sessions related to Swift Charts. The goal is to make each chart type customizable, accessible and flexible so that you can easily change it to your needs.

image

If you want to play around with Dynamic Islands / Live Activities, check out the ๐Ÿ Dynamic Islands repo as well!

Todo

  • Add missing Charts
  • Multi-language Support
  • First row, second bar with the lines with blocks in the middle
  • Sleep stages chart
  • iPhone battery percentage screen with different colors and overlaid bar
  • Make all charts (even more) accessible

See the open issues if you think anything is missing from this list. You can also contact me on Twitter if you have any suggestions or feedback.

How to add a new chart

Each chart needs a preview chart as well as a detail view. The preview chart is used in the home screen of the app for easier navigation. Look at the Simple Line Chart code to see what the format should be for the preview charts. On the detail view, make sure you add some customisation options in a separate section from the chart. If you have any questions feel free to create an issue.

Source: https://developer.apple.com/videos/play/wwdc2022/10137/

Chart Types

Electrocardiograms (ECG)

iPhone Storage

Screen Time

Line Chart

Line Chart with Lollipop

Animating Line

Line with changing gradient

Line Charts

Line Point

Single Bar

Single Bar with Threshold Rule Mark

Two Bars

Pyramid

Time Sheet Bar

Sound Bar

Horizontal Scrolling Bar Chart

Area Chart

Stacked Area Chart

Range Chart

Heart Rate Range Chart

Candle Stick Chart

Customizable Heat Map

GitHub Contributions Graph

Scatter Chart

Vector Field

swift-charts-examples's People

Contributors

atrinh0 avatar jordibruin avatar mathewa6 avatar lekawik avatar theedov avatar shiftingsand avatar dariusngo avatar elichartnett avatar tommy-holmes avatar panpapryk avatar nunogoncalves avatar auramagi avatar aaronpearce avatar aoverholtzer avatar alexfringes avatar brennanmke avatar vibrazy avatar melgu avatar stewartlynch avatar thurss4 avatar hulk510 avatar tunous avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.