• Stars
    star
    208
  • Rank 182,237 (Top 4 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A customizable radar chart in Swift

TKRadarChart

A customizable radar chart in Swift

Xcode 9.0+ iOS 8.0+ Swift 4.0+ Build Status CocoaPods Carthage compatible License MIT

Requirements

  • iOS 8.0+
  • Xcode 9.0
  • Swift 4.0

Installation

CocoaPods

You can use CocoaPods to install TKRadarChart by adding it to your Podfile:

platform :ios, '8.0'
use_frameworks!
pod 'TKRadarChart'

To get the full benefits import TKRadarChart wherever you import UIKit

import UIKit
import TKRadarChart

Carthage

Create a Cartfile that lists the framework and run carthage update. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/TKRadarChart.framework to an iOS project.

github "tbxark/TKRadarChart"

Manually

  1. Download and drop TKRadarChart.swift in your project.
  2. Congratulations!

Usage example

Base

Base Description Demo
Step Background polygon laps(min 1) image image
Row Number of edges of polygon (min 3) image image
Section At the same time show the number of data image image

TKRadarChartConfig

This structure is used for custom charts

    var radius: CGFloat    
    var minValue: CGFloat
    var maxValue: CGFloat

    var showPoint: Bool
    var showBorder: Bool
    var fillArea: Bool
    var clockwise: Bool
    var autoCenterPoint: Bool

TKRadarChartDataSource

This protocol represents the data model object. as such, it supplies no information about appearance

protocol TKRadarChartDataSource: class {
    func numberOfStepForRadarChart(_ radarChart: TKRadarChart) -> Int
    func numberOfRowForRadarChart(_ radarChart: TKRadarChart) -> Int
    func numberOfSectionForRadarChart(_ radarChart: TKRadarChart) -> Int

    func titleOfRowForRadarChart(_ radarChart: TKRadarChart, row: Int) -> String
    func valueOfSectionForRadarChart(withRow row: Int, section: Int) -> CGFloat
}

TKRadarChartDelegate

This represents the display and behaviour of the TKRadarChart.

protocol TKRadarChartDelegate: class {
    func colorOfTitleForRadarChart(_ radarChart: TKRadarChart) -> UIColor
    func colorOfLineForRadarChart(_ radarChart: TKRadarChart) -> UIColor
    func colorOfFillStepForRadarChart(_ radarChart: TKRadarChart, step: Int) -> UIColor

    func colorOfSectionFillForRadarChart(_ radarChart: TKRadarChart, section: Int) -> UIColor
    func colorOfSectionBorderForRadarChart(_ radarChart: TKRadarChart, section: Int) -> UIColor
}

Release History

  • 1.4.3 Upgrade to swift 4.2

  • 1.4.2 Fix bugs that can not change the title font

  • 1.4.1 Fix warnign

  • 1.4.0 Upgrade to swift 4.0

  • 1.3.1 Upgrade framework config

  • 1.3.0 Support swift 3.0

  • 1.0.1 Complete basic functions, add Cocoapod and Carthage support

Contribute

We would love for you to contribute to TKRadarChart, check the LICENSE file for more info.

Meta

TBXark โ€“ @tbxark โ€“ [email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/TBXark

More Repositories

1

ChatGPT-Telegram-Workers

Deploy your own Telegram ChatGPT bot on Cloudflare Workers with ease.
JavaScript
3,159
star
2

TKRubberIndicator

A rubber animation pagecontrol
Swift
1,419
star
3

TKSwitcherCollection

An animation switch collection
Swift
915
star
4

PinterestSegment

A Pinterest-like segment control with masking animation.
Swift
681
star
5

Ruler

An AR ruler app can measure length & area
Swift
239
star
6

mail2telegram

Forward email to telegram
JavaScript
109
star
7

TKDotSegment

TKDotSegment is a segment with dot animation
Swift
105
star
8

PasswordX

Offline password manager for iOS/macOS
Swift
29
star
9

tbxark.github.io

TBXark' blog
JavaScript
24
star
10

github-backup

A tool for backing up all GitHub repositories locally.
JavaScript
17
star
11

poe-telegram-bot

A lightweight poe chatbot for telegram
Python
14
star
12

ScrollViewThumbnail

Quickly create thumbnails for zoomed views in UIScrollview with just a single line of code.
Swift
14
star
13

g4vercel

Go web server for vercel
Go
10
star
14

TKSectorProgressView

An simple animation sector progress view
Swift
10
star
15

chatgpt-prompt-helper

A Tampermonkey script for quickly copying prompts in the web version of ChatGPT.
JavaScript
8
star
16

telegram-bot-vapor-example

Create telegram bot by swift
Swift
7
star
17

numberbarn2telegram

Forward the text message from NumberBarn to Telegram.
JavaScript
7
star
18

chat-bot-go

A lightweight chatgpt bot for telegram
Go
6
star
19

FlexLayout

Flex layout library similar to SwiftUI
Swift
6
star
20

JSONElement

JSONElement makes it easier and safer to use JSON
Swift
6
star
21

SwiftCache

A pure swift cache framework
Swift
4
star
22

testmail-viewer

An online preview tool for Testmail.
Vue
4
star
23

TrieRouter

A simple framework for application routing.
Swift
4
star
24

swift-telegram-bot-api

Swift Telegram Bot API and Telegram Bot API Generator
Swift
3
star
25

cloudflare-worker-adapter

Run your script without Cloudflare Workers.
JavaScript
3
star
26

NetworkService

NetworkService with Alamofire and RxSwift
Swift
3
star
27

my-leetcode-code

LeetCode is a platform for preparing technical coding interviews.
Swift
3
star
28

proxy-config-worker

[Deprecated] An online proxy configuration adaptation tool for Cloudflare worker.
JavaScript
2
star
29

autorun

autorun is a tool that listens for file changes and automatically executes commands.
Go
2
star
30

TBXark

Hi there, I'm TBXark~
2
star
31

RxSwiftLearnDemo

This is example code for RxSwift
Swift
2
star
32

MinesWeeping

A simple MinesWeeping Game
Swift
2
star
33

mweb-export

A tool for generating directories from MWeb files.
Go
1
star
34

temporary-encrypted-clipboard

Clipboard encryption script for secure password transfer across devices.
JavaScript
1
star
35

dart_router

A simple framework for application routing.
Dart
1
star
36

rmock

Modify HTTP JSON responses without needing HTTP capture and MitM.
JavaScript
1
star
37

TKPlaceholderTextView

A textview with placeholder
Swift
1
star
38

Observable

A simple observer framework in Swift
Swift
1
star
39

Watermark

Swift
1
star
40

YoukuInfo

A simple youku crawler
HTML
1
star