Charts with swift - ios

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

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

You can use this powerful ios charts library https://github.com/danielgindi/Charts
or you can use this SVG library to create your own https://github.com/exyte/Macaw
If you are looking for commercial library (I haven't used this yet) https://www.shinobicontrols.com
This is a great telegram channel, where you can find different useful information about ios development and libraries https://t.me/iostalks

As noted in the comments on the linked Core Plot issue, you can use Core Plot in Swift as long as you use the code from the release-2.0 branch. The changes on that branch resolve the issues with NSDecimal that 1.x versions of Core Plot have.

Related

IOS/Objective-C: Simple Library in Objective-C to Make SImple Bar Graphs without Cocoapods

I would like to incorporate some relatively simple graphs in my app. The state of the art libraries seem to be written in Swift and require cocoapods such as Daniel Gindi's Charts. For a variety of reasons, I don't want to use cocoapods and would prefer to keep the app purely in Objective-C. But I'm having a hard time finding a library in Objective-C that does not use cocoapods.
Coreplot from a few years ago seems like it would have fit the bill, however, it seems to have been rewritten in Swift.
Can anyone recommend a relatively lightweight Objective-C library that does not use cocoapods for creating simple charts? (I realize this may seem subjective but there are many highly-upvoted older questions on SO about libraries for charts.) Other than the old Coreplot, however, none of the suggestions seem to be in Objective-C and not require cocoapods.
Thanks in advance for any suggestions.

Is there an equivalent of Androids ShowcaseView for iOS?

There is a project for Android on Github:
https://github.com/amlcurran/Showcaseview
According to the readme:
The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with a distinctive and attractive overlay. This library is great for pointing out points of interest for users, gestures, or obscure but useful items.
I would like to know if a functionally equivalent one exists for iOS. It would be useful to give users a quick tour of an app. Typically app intros are handled with a few swipe screens. Think Uber and Duolingo.
Google and Stackoverflow searching returns nothing meaningful. If I had time I'd work on this as a side project.
Edit: I've ended up using github.com/IFTTT/RazzleDazzle which works for both Swift and Objective-C.
You can also try https://github.com/rahuliyer95/iShowcase this is a similar implementation of ShowcaseView for Android on iOS.
You can also check out my implementation at https://github.com/scihant/CTShowcase
It's developed using Swift 2.0 and can also draw animated highlights such as this one:
Update:
It's now updated for Swift 3.0
You can check a small library (MaterialShowcase on Github) that I created when developing my company app.
There's a framework we've been working on that might be useful, BubbleShowCase. Check it out and don't hesitate to leave any feedback.
Try WSCoachMarksView. It is very easy to use, e.g.:
DDCoachMarks is a simple and flexible iOS alternative:

I need to design the sprinkle chart but without using CorePlot.

I need to design the chart which shows in below URL
http://screencast.com/t/paJruvguQ
But I have to achieve this goal without using CorePlot library , have to write the code from start.
Is there any solution how should I start this.
Recently i have developed a library for such purpose, you can download here. make required modification to suit your requirement. Good luck

MS Excel type spreadsheet creation using objective-c for iOS app

I have a sample iOS app that generates multiple reports using data in the app.
Those reports looks exactly similar to Microsoft Excel spreadsheets like this.
How can I generate the similar using objective-c. I don't have any idea about how can I create the such grid-view. Do we have any objective-c supported framework or anyhting similar to UITableView to create such spreadsheet.
Any help is greatly appreciated.
I have never seen anything like this open source, and I don't think there is. So I would try to hand make it. I think there are three ways to go:
HTML: This should be the easier way to go. Using a UIWebView to render some pre generated HTML/CSS you can create quite easily that spreadsheet (or even use a JS library).
Using a grid view: Either using the Apple solution (UICollectionView, since iOS 6.0) or a third party (AQGridView,GMGridView, etc. There are several, I have only used AQGridView, and its quite complete). The complexity here, is that this libraries are usually developed to show a grid of UIViews, so it's no easy to make them look like the spreadsheet you want.
CoreGraphics: This is much more complex, as you need to draw all the lines, and then draw the fields, but is by far more flexible. I've developed a library for plotting a Radar Chart (RPRadarChart) using Core Graphics, and it wasn't that hard. I have a github repo with all the code that I used to learn Core Graphics, if you want, take a look at it: RPCGSandbox
Good luck, and if you find a better solution, please let us know.
I was looking for a different solution to this issue, but so far I've found:
https://github.com/mochidev/MDSpreadView
Looks like a spreadsheet, and has a similar interface to what a UITableView uses. I was looking for an alternative because the MDSpreadView doesn't use ARC, has a couple compiler warnings, and when I created a library project for it, I noticed it uses lots of images which do not get copied over by default.
You might want to dig deep into UICollectionView, UICollectionViewFlowLayout and also it would be worth looking into AutoLayout Constraints in iOS6. A helpful link : http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2
Use multiple tables as columns and when one scroll you scroll the rest of them as well. I create a grid using that and it was efficient to around 10000 rows and 20 columns. If you want i can guide you how will it be done.

Plotting apps for ios

I have seen some plotting apps for ios, such as Graph It and Quick Graph. I am wondering what libraries they are using for creating plots and how to integrate those libraries into ios apps. Thanks a lot and happy new year.
I don't know the answer for those specific apps, but I can think of some things for you to look at. One is gnuplot--the trouble here might be getting it into suitable form to use as a library rather than using it as a command-line tool, since AFAIK there is no NSTask or fork()-ing under iOS. Another would be to embed PERL; the only real hard part of plotting is evaluating the expression to be plotted, which is trivial in something like PERL. And of course there are other libraries dedicated to expression evaluation which may be more suitable, depending on exactly what you want to plot.

Resources