GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jinsky90/SkyPolygonChart: Chart supports polygons for swift

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
Resource
Resource
 
 
SkyPolygonChart
SkyPolygonChart
 
 
SkyPolygonChartView.xcodeproj
SkyPolygonChartView.xcodeproj
 
 
SkyPolygonChartView
SkyPolygonChartView
 
 
Sources/Skygood
Sources/Skygood
 
 
Tests
Tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
SkyPolygonChart.podspec
SkyPolygonChart.podspec
 
 

Repository files navigation

SkyPolygonChart

👨‍💻 Installation

Manually

1. Download and drop [SkyPolygonChart] folder in your project

2. Configuration

Carthage

  • Add github "jinsky90/SkyPolygonChart" to your Cartfile.

Cocoapods

  • Add pod SkyPolygonChart to your pod file.

👩‍🍳 Usage

1. Drop [SkyPolygonChart] folder in your project

2. Make UIView in StoryBoard

3. Designate Custom Class ‘PolygonChartView’ in your polygonChartView

4. Set configuration by code

  • Set init
class ViewController: UIViewController {
    @IBOutlet weak var polygonChartWrapView: PolygonChartView!
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        self.initPolygonChartView()
    }
    
    func initPolygonChartView() {
        self.polygonChartWrapView.delegate = self
        self.polygonChartWrapView.backgroundColor = .clear
        self.polygonChartWrapView.start()
    }
}
  • Extension PolygonChartViewDelegate
extension ViewController: PolygonChartViewDelegate {
    func setPolygonChartDrawSets(polygonChart: PolygonChartView, radius: CGFloat) -> PolygonChartDrawSet {
        // return PolygonChartDrawSet
    }
    
    func setPolygonChartDataSets(polygonChart: PolygonChartView) -> PolygonChartDataSet? {
        // return PolygonChartDataSet
    }
    
    func numberOfPolygonChart(polygonChart: PolygonChartView) -> Int {
        // return numberOfPolygon
    }
}

👩‍🎨 Attribute

  • PolygonChartDraw
var radius: CGFloat?

var fillColor       : CGColor       = UIColor.clear.cgColor
var strokeColor     : CGColor       = UIColor.clear.cgColor

var lineDashPattern : [NSNumber]?
var lineWidth       : CGFloat       = 0

var objectTextSet   : [String]?
var objectColor     : UIColor       = UIColor.black
var objectFont      : UIFont        = UIFont.systemFont(ofSize: 15, weight: .medium)

var unitText        : String?
var unitColor       : UIColor       = UIColor.black
var unitFont        : UIFont        = UIFont.systemFont(ofSize: 12, weight: .regular)

var isSkeleton      : Bool          = false
  • PolygonChartData
var fillColor       : CGColor       = UIColor.clear.cgColor
var strokeColor     : CGColor       = UIColor.clear.cgColor

var lineDashPattern : [NSNumber]?
var lineWidth       : CGFloat       = 0
var isAnimate       : Bool          = false
var values          : [Double]?

About

Chart supports polygons for swift

Topics

charthexagoniosjinskypentagonpolygonsquareswifttriangle

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.