16 questions
0 votes
2 answers
492 views
For loop appending array in random order
I'm currently trying to create a historical exchange rate graph in swift using BEMSimpleLineGraph, and grabbing data from http://fixer.io/ using AlomoFire. I'm using a for-loop to loop through 7 day(...
1 vote
0 answers
62 views
How to hide the first Y-axis reference line in BEMSimpleLineGraph?
The BEMSimpleLineGraph library is simple and easily customisable. But there is an extra Y-axis reference line as shown: How to remove it? Actually there is no need of it.
2 votes
2 answers
2k views
Cannot override method_name which has been marked unavailable in BEMSimpleLineGraph
I have been using BEMSimpleLineGraph for my project which was initially build for swift 2.3, now I was migrating it to swift 3 so after updating the the library to version 4.1 it gives me the ...
0 votes
1 answer
117 views
Filling an NSMutableArray with int values and then retriveing them [duplicate]
I'm integrating the BEMSimpleLineGraph library into my Objective-C iPhone app, and I'm having trouble adding int values from my Core Data to an NSMutableArray, and later retrieving the values in the ...
0 votes
1 answer
114 views
How to change colour of graph in a particular area?
I am using BEMSimpleLine graph in my IOS application. I want to change the graph colour in some selected areas. Means, currently the graph colour is blue, and from x-axis point 5 to point 10, I want ...
3 votes
3 answers
2k views
Line chart with fix X axis label like healthkit graph in iOS
hello I want to create line chart similar to healthkit. For example i have on X axis (Jul 14, 15, 16, 17), Y axis (0, 50, 100) and data set in (x,y) format is ((jul 15, 30),(jul 17, 80)) I try ...
1 vote
1 answer
112 views
Is it possible to adjust distance of any two points and skip some points on X Axis in BEMSimpleLineGraph?
Is it possible to use BEMSimpleLineGraph with some data point missing? For example: X Axis Time Y Axis Temperature 10:00 67 11:00 70 12:00 Unknown 13:00 72 14:00 69 Connect 70 and 72 with double the ...
0 votes
2 answers
1k views
Programmatically custom UITableViewCell using initWithStyle
I have created a few labels on my tableview using custom UITableViewCell and interface builder. Now i am using some third party control called BEMLineGraph and i want to add it to my tableview cell ...
0 votes
1 answer
176 views
XY datapairs for BEMSimpleLineGraph
The datasets in plots I have in my iOS app, are XY pairs, both the X and Y coordinate are CGFloat values. However, by looking at the source code of BEMSimpleLineGraph, there only seems to be a way to ...
1 vote
1 answer
152 views
Y axis starting point
Is it possible to set the 0 point of the graph to be exactly above the X axis labels when autoScaleYAxis is set to YES? I implemented the baseValueForYAxisOnLineGraph but this only tells it from what ...
6 votes
1 answer
789 views
BEMSimpleLineGraph X-Axis Labels not showing for phones newer than iPhone 5
I've created a line graph using BEMSimpleLineGraph Pod, but, for the life of me, can't figure out why the x-Axis labels aren't showing up on any device newer that an iPhone 5. EDIT: I should mention ...
2 votes
0 answers
238 views
How to display the whole graph for BEMSimpleLineGraph?
I have nine x-axis labels whose names are: 4, 5, ..., and 12, as seen in the picture below: However, the graph only shows eight labels (contains a half 4). How can I display all x-axis labels on the ...
5 votes
3 answers
643 views
CGContextDrawLinearGradient causing EXC_BAD_ACCESS
I am configuring my BEMSimpleLineGraph and have been able to do so successfully except for the linear gradient shading. After referencing this code in the provided example Obj-C project ...
12 votes
1 answer
17k views
Load Multiple Prototype Cells into UITableView
I currently have a UITableView containing 2 rows of a custom cell. I recently added a second prototype cell to my storyboard and have been attempting to add it to my UITableView with no success. My ...
1 vote
1 answer
3k views
How to set datasource and delegate Outside of View Controller
This might sound like an odd question but I'm trying to implement the BEMSimpleLineGraph library to generate some graphs that I have place in a UITableView. My question is how I reference an external ...