GithubHelp home page GithubHelp logo

czetsuya / donut-chart Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 1.0 24 KB

The iOS Donut Progress Bar is an iOS library that you can integrate in your project to present data in a graphical way. Furthermore, it will allow you to get a live preview of the design right in the Interface Builder.

Swift 100.00%
circleview donut-chart progress-bar ios

donut-chart's Introduction

Donut-Progress Bar

The iOS Donut Progress Bar is an iOS library that you can integrate in your project to present data in a graphical way. Furthermore, it will allow you to get a live preview of the design right in the Interface Builder.

Inside the Interface Builder:

alt tag

iOs Simulator:

alt tag

Features

  • Customizable width and color for line and border of the outer/inner circle.
  • Customizable text label.
  • Customizable color, opacity, radius, and offset for shadow of the inner and outer circle
  • Supports the iOS 8 adaptive layout

You can change all of this in the interface builder or in runtime.

Installation

Drag the BCDoughtnutPercentageFramework from BCDoughtnutpercentageContents folder to your project. And after, go to “General” where you should see “Embedded Libraries”, from there add the framework.

Next, add all the files from BCDoughtnutPercentageView to your project by dragging the folder.

Setup

You can now use the BCDoughnutPercentageView as the class of uiview. Drag a UIview from the object library then change its class name to “BCDoughnutPercentageView”. You can now customize its properties from the attribute inspector.

Example Usage In Runtime

circleView.outerRadius = 20

circleView.oColor = UIColor(red: 244/255, green: 156/255, blue: 45/255, alpha: 1)

circleView.percentage = 75

circleView.fontSize = 25

circleView.noOfDecimals = 0

Note: Don’t forget to apply the changes when a property have been change by calling: circleView.animateCircle(1.0)

Important Note:

To be able to use the Donut Progress Bar, you must first purchase the framework at this site.

donut-chart's People

Contributors

czetsuya avatar uchiha-rhenzaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rengaraju

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.