Tomato Animated PieChart With Swift

Overview

TomatoAnimatedPieChart

Development and compatibility

Development platform: iOS
Language: Swift
UI framework: UIKit
Compatibility: iOS 11 or greater

Description

TomatoAnimatedPieChart Framework lets you create a simple 2D pie chart. Each pie in the chart will increase its size in animation. The following is a list of features.

  1. Create a pie chart with colors of your selection.
  2. Adjust the animation speed.
  3. Show the name of each pie at the bottom.

Installation

  1. In order to use this framework, download the sample project. You will find the folder titled TomatoAnimatedPieChart in it. Locate the Xcode file inside. And put this Xcode file in your Xcode project. Select your target and make sure you have TomatoPieChartFramework.framework under General > Framworks, Libraries, and Embeded Content as shown below.

  1. In the view controller where to show a pie chart, create an array of chart models with TomatoChartModel. This struct takes four properties: name (String), percentage (CGFloat), color (UIColor) and end (CGFloat). The name property is the name of a pie. The percentage property refers to the share of the pie. The color property, of course, refers to the color of the pie. The last one (end) is used by the framework. So set it to 0.0 or any number.

Variables

  • starter: It's the very degree where the first pie starts. If you want the first pie to start at 0 o'clock, set it to 0.
  • topSpace: It is the space between the top edge of the view with or without the navigation controller and the chart.
  • radius: It's the radius of the pie chart.
  • pieThickness: It's the thickness (stroke length) of the pie.
  • innerBorder: It's the thickness of the translucent ring around the hole
  • outerBorder: It's the thickness of the outer border of the pie chart.
  • innerAlpha: It's the opacity level of the translucent ring around the hole. If you set it 1, this ring will become completely white.
  • outerBorderColor: It's the color of the outer border.
  • rectWidth: It's the width of the color rectangle in the title container.
  • labelHeight: It's the height of the label of the pie name.
  • labelFontSize: It's the font size of the pie name label.
  • labelTextColor: It's the text color of the pie name label.
  • labelSpace: It's the vertical space between two pie name labels.
  • decimalNum: This number (0, 1, 2 or 3) determines how many decimal points you want to have in indicating the share of each pie.
  • titleContainerWidth: It's the width of the title container.
  • titleContainerBackColor: It's the background color of the title container.
  • titleContainerLayerCornerRadius: It's the corner radius of the title container.
  • titleContainerBottomSpace: It's the space between the title container and the bottom edge of the view.
  • animationDuration: It's the duration of the animation.
  • You might also like...
    🎈 Curated collection of advanced animations that I have developed using (Swift UI for iOS) and (React Native for iOS/Android). Source code is intended to be reused by myself for future projects.
    🎈 Curated collection of advanced animations that I have developed using (Swift UI for iOS) and (React Native for iOS/Android). Source code is intended to be reused by myself for future projects.

    🎈 Curated collection of advanced animations that I have developed using (Swift UI for iOS) and (React Native for iOS/Android). Source code is intended to be reused by myself for future projects.

    Health Sample app using Swift, RxSwift, Anchorage, Charts
    Health Sample app using Swift, RxSwift, Anchorage, Charts

    HealthSample First run pod install, then build the project and run in your devices or simulators. This project has used RIBs, Swift, RxSwift, Anchorag

    Wrapper for the Prettier code formatter written in Swift

    Prettier A wrapper for the Prettier code formatter written in Swift. The package

    SwiftyOpenGraph - A swift library that retrieves structured open graph data from webpages.

    SwiftyOpenGraph Usage Initialization Base Properties Types Installation License Usage Initialization You use SwiftyOpenGraph by initializing OpenGraph

     FlowerChart - custom chart written in Swift
    FlowerChart - custom chart written in Swift

    FlowerChart - custom chart written in Swift Fully vector flower-shaped chart written in Swift Flower-shaped chart written in Swift, this repo is a sam

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

    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

    Using Swift Charts and Voiceover Chart Descriptor to compose music. 🤯
    Using Swift Charts and Voiceover Chart Descriptor to compose music. 🤯

    Chart de lune 🎵 Using Swift Charts and Voiceover Chart Descriptor to compose music. 🤯 Image source: https://hadikarimi.com/portfolio/claude-debussy-

    Animated Mask Label is a nice gradient animated label.
    Animated Mask Label is a nice gradient animated label.

    Animated Mask Label Demo Screen Screenshot Demo/Example For demo: $ pod try AnimatedMaskLabel To run the example project, clone the repo, and run pod

    Cool Animated music indicator view written in Swift
    Cool Animated music indicator view written in Swift

    Cool Animated music indicator view written in Swift. ESTMusicIndicator is an implementation of NAKPlaybackIndicatorView in Swift for iOS 8. 本人著作的书籍《La

    Beautiful animated Alert View. Written in Swift
    Beautiful animated Alert View. Written in Swift

    SCLAlertView Animated Alert View written in Swift, which can be used as a UIAlertView or UIAlertController replacement. Since UIAlertView is deprecate

    Live animated Alert View for iOS written in Swift
    Live animated Alert View for iOS written in Swift

    Sweet Alert iOS Beautiful Animated custom Alert View inspired from javascript library SweetAlert. Written in Swift this SweetAlertView can be used in

    Cute Animated Button written in Swift.
    Cute Animated Button written in Swift.

    DOFavoriteButton Cute Animated Button written in Swift. It could be just right for favorite buttons! Requirements iOS 7.0+ Swift 1.2 Installation Cart

    Animated Social share buttons control for iOS written in Swift
    Animated Social share buttons control for iOS written in Swift

    SwiftShareBubbles Animated Social share buttons control for iOS written in Swift. This library is inspired AAShareBubbles. I tried AAShareBubbles with

    A simple animated progress bar in Swift
    A simple animated progress bar in Swift

    DSGradientProgressView Introduction DSGradientProgressView is a simple and customizable animated progress bar written in Swift. Inspired by GradientPr

    High-performance animated GIF support for iOS in Swift
    High-performance animated GIF support for iOS in Swift

    Gifu adds protocol-based, performance-aware animated GIF support to UIKit. (It's also a prefecture in Japan). Install Swift Package Manager Add the fo

    XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage
    XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage

    XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage. An illustration is shown below: Features Plays m

    A fully customizable library to easily display Animated Toast Messages in iOS using Swift!
    A fully customizable library to easily display Animated Toast Messages in iOS using Swift!

    CustomToastView-swift A fully customizable library to easily display Animated Toast Messages in iOS using Swift! Preview - All the custom toasts you c

    Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift
    Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift

    Persei Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift! Made in Yalantis. Check this project on Dribbble Check th

    Advance animated alerts for iOS written in Swift
    Advance animated alerts for iOS written in Swift

    LIHAlert LIHAlert provides animated banners for iOS. Updated to Swift 3 Demo Project The LIHAlert workspace contains a demo project, also used for dev

    Owner
    Tomato Software
    Me llamo Sr. Tomato de Japon. No, I don't necessarily like tomatoes. I'm not a Spanish-speaking person, either. I only speak English and Japan.
    Tomato Software
    ANDLineChartView is easy to use view-based class for displaying animated line chart.

    ANDLineChartView for iOS ANDLineChartView is easy to use view-based class for displaying animated line chart. Usage API is simple. Just implement foll

    Andrzej Naglik 421 Dec 11, 2022
    An iOS wrapper for ChartJS. Easily build animated charts by leveraging the power of native Obj-C code.

    TWRCharts TWRCharts An Obj-C wrapper for ChartJS. Easily build animated charts by leveraging the power of native code. TWRCharts is yet another charti

    Michelangelo Chasseur 363 Nov 28, 2022
    A simple and beautiful chart lib used in Piner and CoinsMan for iOS(https://github.com/kevinzhow/PNChart) Swift Implementation

    PNChart-Swift PNChart(https://github.com/kevinzhow/PNChart) Swift Implementation Installation This isn't on CocoaPods yet, so to install, add this to

    Kevin 1.4k Nov 7, 2022
    An adaptive scrollable graph view for iOS to visualise simple discrete datasets. Written in Swift.

    ScrollableGraphView Announcements 9-7-2017 - Version 4: Version 4 was released which adds multiple plots, dynamic reloading of values, more reference

    Phillip 5.3k Jan 5, 2023
    TKRadarChart - A customizable radar chart in Swift

    TKRadarChart A customizable radar chart in Swift Requirements iOS 8.0+ Xcode 9.0 Swift 4.0 Installation CocoaPods You can use CocoaPods to install TKR

    TBXark 203 Dec 28, 2022
    A Fourier Series visualisation written in Swift/SwiftUI

    Fourier Series Visualisation in SwiftUI This little app visualises different Fourier series using epicycles and a graph. The number of functions and t

    Simon Stiefel 229 Jan 1, 2023
    Flower-like chart written in Swift

    FlowerChart - custom chart written in Swift Fully vector flower-shaped chart written in Swift Flower-shaped chart written in Swift, this repo is a sam

    Alexander Telegin 15 Jun 9, 2021
    Light weight charts view generater for iOS. Written in Swift.

    # ###Light weight charts view generater for iOS. Written in Swift. Requirements iOS 8.0+ XCode 7.3+ Installation CocoaPods $ pod init specify it in yo

    Recruit Holdings. Media Technology Lab 982 Nov 16, 2022
    Easy to use Spider (Radar) Chart library for iOS written in Swift.

    DDSpiderChart Easy to use Spider (Radar) Chart library for iOS written in Swift. Requirements iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ Xcode

    Deniz Adalar 82 Nov 14, 2022
    Line Chart library for iOS written in Swift

    Swift LineChart Usage var lineChart = LineChart() lineChart.addLine([3, 4, 9, 11, 13, 15]) Features Super simple Highly customizable Auto scaling Touc

    Mirco Zeiss 601 Nov 15, 2022