Questions tagged [bemsimplelinegraph]

BEMSimpleLineGraph is an open-source charting library (available on GitHub) that makes it easy to create beautiful line graphs for iOS. Use this tag to ask questions about the open source project - do not ask about new features.

BEMSimpleLineGraph is an open source charting library that makes it easy to create beautiful line graphs for iOS. It is easy to set-up and to use in any iOS Project. The project is focused on highly customizable and interactive line graphs. Plus, it is lightweight and can be integrated in minutes (maybe even seconds).

BEMSimpleLineGraph's implementation, data source, and delegate are all modeled off of and . If you're familiar with using a UITableView, UITableViewController, or UICollectionView, using BEMSimpleLineGraph should be a breeze!

Use this tag to ask questions about the open source project - do not ask about new features.

More information can be found on the GitHub project page.

16 questions
12
votes
1 answer

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 cellForRowAtIndexPAth method is as follows: func…
user3185748
  • 2,478
  • 8
  • 27
  • 43
6
votes
1 answer

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 enableXAxisLabel = YES by default. Here is the…
Chris
  • 495
  • 1
  • 8
  • 19
5
votes
3 answers

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 CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB(); …
4
votes
1 answer

Setting up BEMSimpleLineGraph Plot within UITableView

While working on my app this evening I've come across a new situation. I'm attempting to load 2 different graphs [using BEMSimpleLineGraph] each into a different row of a UITableView. I've created a custom cell containing a UIView that inherits from…
user3185748
  • 2,478
  • 8
  • 27
  • 43
3
votes
3 answers

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 following libraries…
Bhushan Vaidya
  • 722
  • 1
  • 6
  • 17
2
votes
2 answers

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 following error that it can't override the methods as…
Anirudha Mahale
  • 2,526
  • 3
  • 37
  • 57
2
votes
0 answers

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 graph on my screen? My thought is reduce the…
Cokile Ceoi
  • 1,326
  • 2
  • 15
  • 26
1
vote
0 answers

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.
hamedazhar
  • 990
  • 10
  • 26
1
vote
1 answer

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 X Axis distance between 10:00 and 11:00. Drop the…
Al3n
  • 120
  • 11
1
vote
1 answer

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 point the y labels should start.
Dr.Agos
  • 2,229
  • 2
  • 15
  • 17
1
vote
1 answer

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 dataSource and Delegate to have different graphs…
user3185748
  • 2,478
  • 8
  • 27
  • 43
0
votes
2 answers

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(just to see if I can get it working) and then…
0
votes
1 answer

Filling an NSMutableArray with int values and then retriveing them

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 same class but a different method. Here is the…
0
votes
1 answer

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 to make it green colour. The rest of the other…
itzmebibin
  • 9,199
  • 8
  • 48
  • 62
0
votes
2 answers

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 using code. It also has a few delegates and data…
Rashid
  • 762
  • 1
  • 9
  • 30
1
2