BEMSimpleLineGraph icon indicating copy to clipboard operation
BEMSimpleLineGraph copied to clipboard

Multiple lines (series) support

Open mcsquaredjr opened this issue 11 years ago • 13 comments

Are multiple lines (aka series) currently supported? Thanks!

mcsquaredjr avatar Jun 19 '14 00:06 mcsquaredjr

Hi @mcsquaredjr, Multiple lines are currently not supported. This is something that will be implemented later on. As far as I know no one is working on this feature yet.

Boris-Em avatar Jun 19 '14 00:06 Boris-Em

Thanks for getting back to me so quickly. I would be a great addition.

mcsquaredjr avatar Jun 19 '14 00:06 mcsquaredjr

@mcsquaredjr @Boris-Em I am working on the multiple lines feature. It will be quite a while before this feature is ready though. Odds are it will be implemented on the überfeature branch before it is implemented anywhere else.

Sam-Spencer avatar Jun 30 '14 02:06 Sam-Spencer

Any update on this?

nderkach avatar Aug 03 '14 05:08 nderkach

This feature will probably be implemented on the feature branch first. I invite you to take a look at the project's roadmap for more information.

Boris-Em avatar Aug 03 '14 10:08 Boris-Em

Hi, i don't want to open a separate issue for that, so i am asking right here. I think the topic fits.

I want to display multiple lines as well and was asking myself if it is possible to simply take two UIViews with the same origin and size and set the bottom and top background color to 0 alpha. I did just that in Interface Builder and it works. My only problem is, as both graphs share one datasource and delegate, how do i make sure to return the correct data for the individual graph? At the Moment the data seems to be corrupt in some way. Currently i am trying to do it that way:

@interface ViewController () <BEMSimpleLineGraphDataSource, BEMSimpleLineGraphDelegate>
@property (weak, nonatomic) IBOutlet BEMSimpleLineGraphView *myGraph;
@end

@implementation ViewController
 - (CGFloat)lineGraph:(BEMSimpleLineGraphView *)graph valueForPointAtIndex:(NSInteger)index
 {
    if ([graph isEqual:myGraph]) {
        return [[altitudeArray objectAtIndex:index] floatValue];
    } 
    return 0.f;
}
@end

ThomsonIT avatar Oct 05 '14 20:10 ThomsonIT

I made a pull-request of multiline code. which is not a complete implementation, and has some limitation.

Multiple lines support #102, #103 #108

adonishi avatar Nov 15 '14 08:11 adonishi

hi is there any progress on multi-line plot ?

vishw3 avatar Feb 06 '15 03:02 vishw3

Hi All, Is there any update on multi lines support??

GopiK14 avatar Sep 21 '16 11:09 GopiK14

Hello,I need multi line supporting,any update on the feature? Thanks

inix avatar Oct 23 '16 03:10 inix

Hi, I'm also hoping for multiple line support. Love this but need to show two lines (and maybe a line of averages). I have no idea how to do this or I'd love to contribute it.

nickpernisco avatar Oct 24 '16 02:10 nickpernisco

I really need multiline support on this.

Kae7in avatar Dec 19 '16 20:12 Kae7in

I really need multiline support on this.

voshk avatar Dec 23 '16 07:12 voshk