8000 GitHub - dingiosdev/Stockee: Highly customizable performant k-line chart written in swift.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dingiosdev/Stockee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
< 8000 a title="LICENSE" aria-label="LICENSE, (File)" class="Link--primary" href="/dingiosdev/Stockee/blob/main/LICENSE" data-discover="true">LICENSE
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stockee

Highly customizable lightweight k-line chart written in swift.

Cover

Installation

Swift Package Manager

Cocoapods

pod 'Stockee'

Docs

中文文档

Sample

Use a declarative syntax to build your k-line chart like SwiftUI. It's simpler and easier to read.

chartView.descriptor = ChartDescriptor(spacing: 0) {
    ChartGroup(height: 200) {
        GridIndicator(lineWidth: 1 / UIScreen.main.scale, color: .Stockee.border)
        YAxisAnnotation()
        CandlestickChart()
        MAChart(configuration: .init(period: 5, color: .yellow))
        MAChart(configuration: .init(period: 10, color: .teal))
        MAChart(configuration: .init(period: 20, color: .purple))
    }

    ChartGroup(height: 18) {
        TimeAnnotation(dateFormat: "HH:mm")
        SelectedTimeIndicator()
    }
}

License

Stockee is available under the MIT license. See the LICENSE file for more info.

About

Highly customizable performant k-line chart written in swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 99.8%
  • Ruby 0.2%
0