Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Charts with swift

I'm new in iOS development and want to create an app with some charts. I decided to start development with swift because it seemed to be more easy to learn for me as Java developer. But meanwhile I think using objective-c would have been the better choice because AFAIK there is no chart library available that match my criteria:

  • usable with swift
  • has line and bar charts
  • ability to draw charts with date and time axis
  • free to use or low price < 100 USD

Common chart libraries like JBChartView, Core-Plot and iOSPlot do not fulfill my criteria so I'm thinking about either to use a JavaScript chart library in a WebView or switching completely to objective-c

Is it good practice to use a JavaScript chart API in a WebView? If so, may this make problems on different devices with different screen sizes and orientations? What are common pitfalls with this approach?

Edit: Core-Plot release-2.0 works well with Swift

like image 211
eztam Avatar asked Mar 16 '15 12:03

eztam


1 Answers

You could use iOS-Charts

This is a great chart library written in swift and is on github:

There are some great tutorials going through the basics here.

iOS-Charts seems to fit your criteria

  • It is completely free
  • It is written specifically for Swift
  • It has 8 different graph types
like image 124
sam_smith Avatar answered Sep 30 '22 05:09

sam_smith