All Projects → johnnywjy → Jyradarchart

johnnywjy / Jyradarchart

Licence: mit
an iOS open source Radar Chart implementation

Projects that are alternatives of or similar to Jyradarchart

Callbackurlkit
Implementation of x-callback-url (Inter app communication) in swift
Stars: ✭ 299 (-28.64%)
Mutual labels:  xcode, cocoapods
Maplebacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations
Stars: ✭ 322 (-23.15%)
Mutual labels:  xcode, cocoapods
Stevia
🍃 Concise Autolayout code
Stars: ✭ 3,182 (+659.43%)
Mutual labels:  xcode, cocoapods
Imageloaderswift
A lightweight and fast image loader for iOS written in Swift.
Stars: ✭ 290 (-30.79%)
Mutual labels:  xcode, cocoapods
Restofire
Restofire is a protocol oriented networking client for Alamofire
Stars: ✭ 377 (-10.02%)
Mutual labels:  xcode, cocoapods
Netfox
A lightweight, one line setup, iOS / OSX network debugging library! 🦊
Stars: ✭ 3,188 (+660.86%)
Mutual labels:  xcode, cocoapods
Microfeatures Guidelines
📦📝 uFeatures guidelines
Stars: ✭ 315 (-24.82%)
Mutual labels:  xcode, cocoapods
Xcode One Dark
Atom One Dark theme for Xcode
Stars: ✭ 273 (-34.84%)
Mutual labels:  xcode, cocoapods
Swift5 Module Template
An opinionated starting point for awesome, reusable Swift 5 modules
Stars: ✭ 331 (-21%)
Mutual labels:  xcode, cocoapods
Tbuiautotest
Generating UI test label automatically for iOS.
Stars: ✭ 333 (-20.53%)
Mutual labels:  xcode, cocoapods
Audioindicatorbars
AIB indicates for your app users which audio is playing. Just like the Podcasts app.
Stars: ✭ 279 (-33.41%)
Mutual labels:  xcode, cocoapods
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-6.68%)
Mutual labels:  xcode, cocoapods
Fapaginationlayout
Collection view pagination layout
Stars: ✭ 276 (-34.13%)
Mutual labels:  xcode, cocoapods
Anyformatkit
Simple text formatting in Swift
Stars: ✭ 296 (-29.36%)
Mutual labels:  xcode, cocoapods
Containercontroller
UI Component. This is a copy swipe-panel from app: Apple Maps, Stocks. Swift version
Stars: ✭ 273 (-34.84%)
Mutual labels:  xcode, cocoapods
Wordpress Ios
WordPress for iOS - Official repository
Stars: ✭ 3,239 (+673.03%)
Mutual labels:  xcode, cocoapods
Colorizeswift
Terminal string styling for Swift.
Stars: ✭ 253 (-39.62%)
Mutual labels:  xcode, cocoapods
Roundcode
Custom rounded QR code with lots of customization.
Stars: ✭ 267 (-36.28%)
Mutual labels:  xcode, cocoapods
Snapkit
A Swift Autolayout DSL for iOS & OS X
Stars: ✭ 18,091 (+4217.66%)
Mutual labels:  xcode, cocoapods
Iosdropdown
Drop Down Menu for iOS With Search And Other Awesome Customisation
Stars: ✭ 390 (-6.92%)
Mutual labels:  xcode, cocoapods

JYRadarChart

an open source iOS Radar Chart implementation

##Screenshots

iPhone Screenshot1 iPhone Screenshot2 iPhone Screenshot3

Requirements

  • Xcode 5 or higher
  • iOS 5.0 or higher
  • ARC
  • CoreGraphics.framework

Demo

Build and run the JYRadarChartDemo project in Xcode

##Installation

###CocoaPods

  1. Create a Podfile in your project folder if you don't have one
  2. Add a pod entry for JYRadarChart to your Podfile pod 'JYRadarChart'
  3. Install the pod(s) by running pod install
  4. Include JYRadarChart wherever you need it with #import "JYRadarChart.h"

###Manual Install

All you need to do is drop JYRadarChart files into your project, and add #import "JYRadarChart.h" to the top of classes that will use it.

##Example Usage

###minimum JYRadarChart *p = [[JYRadarChart alloc] initWithFrame:CGRectMake(30, 20, 200, 200)]; p.dataSeries = @[@[@(51),@(44),@(94),@(84),@(90)]]; p.attributes = @[@"attack",@"defense",@"speed",@"HP",@"MP"]; [self.view addSubview:p];

###fully customized

JYRadarChart *p = [[JYRadarChart alloc] initWithFrame:CGRectMake(20, 20, 200, 200)];

NSArray *a1 = @[@(81), @(97), @(87), @(60), @(65), @(77)];
NSArray *a2 = @[@(91), @(87), @(33), @(77), @(78), @(96)];

//set the data series
p.dataSeries = @[a1, a2];

//how many "circles" in the chart 
p.steps = 4;

//for the the entire background
p.backgroundColor = [UIColor whiteColor];

//you can specify the background fill color
//(just for the chart, not the entire background of the view)
p.backgroundFillColor = [UIColor grayColor];

//you can set radius, min and max value by yourself, but if you
//leave r (will fill the rect), minValue (will be 0), maxValue (default is 100) alone, 
//that is okay. the points with too big value will be out of the chart and thus invisible
p.r = 60;
p.minValue = 20;
p.maxValue = 120;

//you can choose whether fill area or not (just draw lines) 
p.fillArea = YES;

//you can specify the opacity, default is 1.0 (opaque)
p.colorOpacity = 0.7;
p.attributes = @[@"Attack", @"Defense", @"Speed", @"HP", @"MP", @"IQ"];

//if you do not need a legend, you can safely get rid of setTitles:
p.showLegend = YES;
[p setTitles:@[@"archer", @"footman"]];

//there is a color generator in the code, it will generate colors for you
//so if you do not want to specify the colors yourself, just delete the line below
[p setColors:@[[UIColor grayColor],[UIColor blackColor]]];
[self.view addSubview:p];

##Customization

here are all the properties you can change, you can find them in JYRadarChart.h

@property (nonatomic, assign) CGFloat r;
@property (nonatomic, assign) CGFloat maxValue;
@property (nonatomic, assign) CGFloat minValue;
@property (nonatomic, assign) BOOL drawPoints;
@property (nonatomic, assign) BOOL fillArea;
@property (nonatomic, assign) BOOL showLegend;
@property (nonatomic, assign) BOOL showStepText;
@property (nonatomic, assign) CGFloat colorOpacity;
@property (nonatomic, strong) UIColor *backgroundLineColorRadial;
@property (nonatomic, strong) UIColor *backgroundFillColor;
@property (nonatomic, strong) NSArray *dataSeries;
@property (nonatomic, strong) NSArray *attributes;
@property (nonatomic, assign) NSUInteger steps;
@property (nonatomic, assign) CGPoint centerPoint;

- (void)setTitles:(NSArray *)titles;
- (void)setColors:(NSArray *)colors;

##Contact

johnny.wjy07#gmail.com

Feel free to send me pull requests!

Enjoy it~

##License

JYRadarChart is available under the MIT license.

The MIT License (MIT)

Copyright (c) 2013 Johnny Wu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].