All Projects → zemirco → Swift Linechart

zemirco / Swift Linechart

Line Chart library for iOS written in Swift

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Swift Linechart

Piecharts
Easy to use and highly customizable pie charts library for iOS
Stars: ✭ 476 (-19.19%)
Mutual labels:  chart
Live Charts
Simple, flexible, interactive & powerful charts, maps and gauges for .Net
Stars: ✭ 5,045 (+756.54%)
Mutual labels:  chart
Starcharts
Plot your repository stars over time.
Stars: ✭ 560 (-4.92%)
Mutual labels:  chart
Wx Charts
微信小程序图表charts组件,Charts for WeChat Mini Program
Stars: ✭ 4,633 (+686.59%)
Mutual labels:  chart
Flutter deer
🦌 Flutter 练习项目(包括集成测试、可访问性测试)。内含完整UI设计图,更贴近真实项目的练习。Flutter practice project. Includes a complete UI design and exercises that are closer to real projects.
Stars: ✭ 5,725 (+871.99%)
Mutual labels:  chart
React D3 Tree
🌳 React component to create interactive D3 tree graphs
Stars: ✭ 543 (-7.81%)
Mutual labels:  chart
Chartjs Chart Financial
Chart.js module for charting financial securities
Stars: ✭ 469 (-20.37%)
Mutual labels:  chart
Androbd
Android OBD diagnostics with any ELM327 adapter
Stars: ✭ 573 (-2.72%)
Mutual labels:  chart
Chart
Quick & smart charting for STDIN
Stars: ✭ 521 (-11.54%)
Mutual labels:  chart
Echarts For Weixin
Apache ECharts (incubating) 的微信小程序版本
Stars: ✭ 5,479 (+830.22%)
Mutual labels:  chart
Finviz
Unofficial API for finviz.com
Stars: ✭ 493 (-16.3%)
Mutual labels:  chart
Billboard.js
📊 Re-usable, easy interface JavaScript chart library based on D3.js
Stars: ✭ 5,032 (+754.33%)
Mutual labels:  chart
Tui.chart
🍞📊 Beautiful chart for data visualization.
Stars: ✭ 5,041 (+755.86%)
Mutual labels:  chart
Radarchartview
Android view (widget) for rendering radial diagrams
Stars: ✭ 488 (-17.15%)
Mutual labels:  chart
Clip
Create charts from the command line
Stars: ✭ 5,111 (+767.74%)
Mutual labels:  chart
Cfviz
Visualizes user data from codeforces.com using the official API
Stars: ✭ 472 (-19.86%)
Mutual labels:  chart
Ttyplot
a realtime plotting utility for terminal/console with data input from stdin
Stars: ✭ 532 (-9.68%)
Mutual labels:  chart
Gojs
JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
Stars: ✭ 5,739 (+874.36%)
Mutual labels:  chart
Wunderbar
Simple horizontal bar chart printer for your terminal
Stars: ✭ 572 (-2.89%)
Mutual labels:  chart
Esp Dash
A blazing fast library to create a functional dashboard for ESP8266 and ESP32
Stars: ✭ 548 (-6.96%)
Mutual labels:  chart

Swift LineChart

line chart demo

Usage

var lineChart = LineChart()
lineChart.addLine([3, 4, 9, 11, 13, 15])

Features

  • Super simple
  • Highly customizable
  • Auto scaling
  • Touch enabled
  • Area below lines

Properties

Both x and y properties are of type Coordinate. Each can be customized separately and has its own settings for labels, gridlines and axis.

  • labels: Labels
  • grid: Grid
  • axis: Axis

Labels can be switched on and off and they can have custom values.

  • visible: Bool = true
  • values: [String] = []

Grid can also be switched on/off, has a custom color and you can specify how many gridlines you'd like to show.

  • visible: Bool = true
  • count: CGFloat = 10
  • color: UIColor = UIColor(red: 238/255.0, green: 238/255.0, blue: 238/255.0, alpha: 1) // #eeeeee

Axis can be switched on/off, has a property to its color and you can specify how much the axis is inset from the border of your UIView.

  • visible: Bool = true
  • color: UIColor = UIColor(red: 96/255.0, green: 125/255.0, blue: 139/255.0, alpha: 1) // 607d8b
  • inset: CGFloat = 15

Animations can be customized through the Animation settings.

  • enabled: Bool = true
  • duration: CFTimeInterval = 1

If you'd like to show extra dots at your data points use the Dots features.

  • visible: Bool = true
  • color: UIColor = UIColor.whiteColor()
  • innerRadius: CGFloat = 8
  • outerRadius: CGFloat = 12
  • innerRadiusHighlighted: CGFloat = 8
  • outerRadiusHighlighted: CGFloat = 12

In addition to the above mentioned features you can further customize your chart.

  • area: Bool = true - Fill the area between line and x axis
  • lineWidth: CGFloat = 2 - Set the line width
  • colors: [UIColor] = [...] - Colors for your line charts

Methods

Add line to chart.

lineChart.addLine(data: [CGFloat])

Remove charts, areas and labels but keep axis and grid.

lineChart.clear()

Make whole UIView white again

lineChart.clearAll()

Delegates

didSelectDataPoint()

Touch event happened at or close to data point.

func didSelectDataPoint(x: CGFloat, yValues: [CGFloat]) {
  println("\(x) and \(yValues)")
}

Examples

Single line with default settings.

line chart demo

var lineChart = LineChart()
lineChart.addLine([3, 4, 9, 11, 13, 15])

Two lines without grid and dots.

two lines without grid and dots

var lineChart = LineChart()
lineChart.area = false
lineChart.x.grid.visible = false
lineChart.x.labels.visible = false
lineChart.y.grid.visible = false
lineChart.y.labels.visible = false
lineChart.dots.visible = false
lineChart.addLine([3, 4, 9, 11, 13, 15])
lineChart.addLine([5, 4, 3, 6, 6, 7])

Show x and y axis

chart with x and y axis

var lineChart = LineChart()
lineChart.area = false
lineChart.x.grid.count = 5
lineChart.y.grid.count = 5
lineChart.addLine([3, 4, 9, 11, 13, 15])
lineChart.addLine([5, 4, 3, 6, 6, 7])

License

MIT

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].