Giter Site home page Giter Site logo

dr-charts's People

Contributors

dhirenthirani avatar gunjanpatidar avatar ylogx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dr-charts's Issues

bar chart issue

Hi, in bar chart the x values are overlapping if the text is bigger , if I increase bar width it works fine but when I scroll horizontally the Y values are also scrolled , it is difficult to know bar values on scrolling how Can I fix it. Even If I can show the bar values above all bars without user interaction means that will be much better can you tell me the solution

Pie chart related issue

Previously, in pie chart we have data sources like
func numberOfValues(forPieChart pie: UIView!) -> Int {},
So we can use these methods for multiple charts views on the same controller.

But now the library has removed this and now the function is like
func numberOfValuesForPieChart() -> Int {}

How can we distinguish between different chart views.

MultiLineGraphView crash

HI. I get the following crash:

#0. Crashed: com.apple.main-thread
0  CoreGraphics                   0x1be3da648 CGColorEqualToColor + 40
1  QuartzCore                     0x1c0c2680c CACGContextEvaluator::update_with_color(CGColor*, CGCompositeOperation) + 84
2  QuartzCore                     0x1c0c25a78 draw_path(CGContextDelegate*, CGRenderingState*, CGGState*, CGPathDrawingMode, CGPath const*) + 188
3  CoreGraphics                   0x1be3d86e4 CGContextDrawPath + 224
4  UIKitCore                      0x1e91c4378 -[UIBezierPath stroke] + 204
5  DeliveryHub                    0x1026fe7c4 -[MultiLineGraphView drawPathWithStartPoint:endPoint:] (MultiLineGraphView.m:754)
6  DeliveryHub                    0x1026fe3a4 -[MultiLineGraphView drawLineForGridWithStartPoint:endPoint:text:textFrame:drawGrid:] (MultiLineGraphView.m:724)
7  DeliveryHub                    0x1026fa2d0 -[MultiLineGraphView createYAxisLine] (MultiLineGraphView.m:231)
8  DeliveryHub                    0x1026f9b50 -[MultiLineGraphView drawGraph] (MultiLineGraphView.m:150)

Rotate x axis labels

Hey. I'm wondering if there is a way to rotate the x axis labels? I can see when creating the ChartAxisValueDouble objects, the default label settings are applied (0 for rotation) and that these objects are then used to build the ChartBarModel objects. However I cannot find a way to edit the label settings for those objects, as the init only access tuples with String and Double.

bar charts overlapping

when having more than 2 bar charts all the information of the other bars overlap on the second bar chart.
how can i avoid this?
thank you.

Graph overlap problem - reloadChart does not solve the issue

drawing the first chart is fine. However, when a second chart is to be drawn, the first graph still is shown thus the second graph overlaps the first one. For any subsequent graph draw attempt causes the overlap to build on top of previous graphs.
Similar issue is reported in closed issue #18 Reset Graph. The proposed fix to use ReloadPieChart method does not fix the issue.

Sample Code ;
#pragma Mark CreatePieChart

  • (void)createPieChart{

    //PieChart *chart = [[PieChart alloc] initWithFrame:CGRectMake(0, header_height, WIDTH(self.view), (HEIGHT(self.view) - header_height)/2)];
    PieChart *chart = [[PieChart alloc] initWithFrame:CGRectMake(0, header_height, 350, 290)];
    [chart setDataSource:self];
    [chart setDelegate:self];
    [chart setShowLegend:TRUE];
    //[chart setLegendViewType:LegendTypeHorizontal];
    [chart setLegendViewType:LegendTypeVertical];
    [chart setTextFontSize:12];
    [chart setTextColor:[UIColor redColor]];
    [chart setTextFont:[UIFont systemFontOfSize:chart.textFontSize]];
    [chart setShowValueOnPieSlice:TRUE];
    [chart setShowCustomMarkerView:TRUE];
    //[chart drawPieChart];
    [chart reloadPieChart];
    [self.view addSubview:chart];
    }
    img_3805
    img_3806

Reset graph

Hello!

It might be a silly question, but is there a way to reset/clear the graph previosly drawn?
I'm working on the same view and drawing different graphs when a button get clicked.

That's how it looks after I try to redraw it:
fullsizerender
I tried to reset the view in some ways, but without any luck.

If there isn't the possibility to reset the chart I suggest to insert it, cause it might be useful.

Thanks

Issue with grid layout rendering inside the graph view

screen shot 2017-01-21 at 8 50 36 am

Please have a look at the attached image. Towards right side, the grid layout inside the graph view is not completed. Tried with reducing the view width. Still it was looks like cutting towards the right side. What could be the reason.

Thanks in advance, Manju

Error

MultiLineGraphView *graph = [[MultiLineGraphView alloc] initWithFrame:CGRectMake(0, header_height, WIDTH(self.view), HEIGHT(self.view) - header_height)];

what is "header_height" variable ?
when the method "MultiLineGraphView alloc] initWithFrame:CGRectMake" is set constants gives an error:
Undefined symbols for architecture x86_64: "OBJC_CLASS$_MultiLineGraphView", referenced from: objc-class-ref in LineChartViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Curved in line chart

In line chart i want to make it curved as per requirement.
Is there any properties for it?

Bar Chart Overlapping issue

Dear @dhirenthirani

For Bar Graph, I'm returning the number of Bar to be plotted as 3, the 2nd and 3rd bar line is overlapping with each other.
To test, Pls return "3" bars for numberOfBarsToBePlotted datasource method.
Please let me know any changes to be made in the library.

Best,
Imad

When I Use it in Swift 3.0 (iOS 8.0)it was Flashback for this,how can i fix them???

Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineWidth: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineJoin: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineCap: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetMiterLimit: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetFlatness: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextAddPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineWidth: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineJoin: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineCap: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetMiterLimit: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetFlatness: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextAddPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineWidth: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineJoin: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineCap: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetMiterLimit: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetFlatness: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextAddPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineWidth: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineJoin: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineCap: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetMiterLimit: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetFlatness: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextAddPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineWidth: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineJoin: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineCap: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetMiterLimit: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetFlatness: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextAddPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 8 16:06:12 JLPhone drChartsExample[7273] : CGContextSetLineWidth: invalid c

Is it possible to set a scale min in the chart ?

Hello,

Is it possible to display a chart with a scale min different from zero ?

For exemple, instead of displaying a chart with the axe Y from 0 to 100, can we display it from 90 to 100 ?

In advance, thank you.

Display marker permanently

Hi,

I'm using the lib in objective C and I would like to know how can I display all the markers in my chart permanently ? (to don't have to tap the chart to display one by one)

In advance, thanks.

Negative value

Hi, first thanks for your work.
I use a line graph and i can have negative value. On the first image you can see my graphe is good but the label on the left for negative value in not good. The lowest value is set on the 0 line. And i can't click on the negative point.
screen shot 2016-11-18 at 16 29 27
I try to inverse the value to see what it's do and the graphe is totaly broken. So can we use negative value for Y position? And if yes how i do this?
screen shot 2016-11-18 at 16 34 19

Calling method: reloadPieChart from PieChart class.

The values from self.legebtArray and self.dataArray aren't deallocated when I call reloadPieChart. I've modified next method and it works.

- (void)getDataFromDataSource{

    //These line of code
    [self.legendArray removeAllObjects];
    [self.dataArray removeAllObjects];
    self.totalCount = @(0);
    
    for(int i = 0; i <[self.dataSource numberOfValuesForPieChart] ; i++){
        
        PieChartDataRenderer *data = [[PieChartDataRenderer alloc] init];
        [data setColor:[self.dataSource colorForValueInPieChartWithIndex:i]];
        [data setTitle:[self.dataSource titleForValueInPieChartWithIndex:i]];
        [data setValue:[self.dataSource valueInPieChartWithIndex:i]];
        
        [self.dataArray addObject:data];
        
        self.totalCount = [NSNumber numberWithFloat:(self.totalCount.floatValue + data.value.floatValue)];
        
        LegendDataRenderer *legendData = [[LegendDataRenderer alloc] init];
        [legendData setLegendText:data.title];
        [legendData setLegendColor:data.color];
        [self.legendArray addObject:legendData];
    }
}

Bar Graph with rounded corners

Hi

Can we add rounded corners to the Bar graph? I tried the following, But it is not rendering the Round-Rect corners.

- (UIBezierPath *)drawBarPathWithStartPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint{
    CGRect rect = CGRectMake(startPoint.x, startPoint.y, endPoint.x - startPoint.x, endPoint.y - startPoint.y);
    CGSize radii = CGSizeMake(5, 5);
    UIRectCorner corners = UIRectCornerAllCorners;
    UIBezierPath *path1 = [UIBezierPath bezierPathWithRoundedRect:rect byRoundingCorners:corners cornerRadii:radii];
    
    [path1 closePath];
    [path1 stroke];
    
    return path1;
}

I want something like this:

Screenshot

Hi Team, Facing Crash issue DR-Charts

I'm facing issues are as follows.

  1. I had Update my pod file and add new pods to install and i don't want to update DR-Charts from 1.3 to 1.4. but when I execute 'pod install --no-repo-update' on terminal I got follwing error
    [!] Unable to satisfy the following requirements:

None of your spec sources contain a spec satisfying the dependencies: drCharts (from https://github.com/Zomato/DR-charts.git`), drCharts (= 1.3)`.

Then I update my pods using 'pod update' due to this DR-Charts are also updated from 1.3 to 1.4

After updating DR-Charts My App started Crashing, find below is the Crash Log.
Please tell me the solution what Can I do to Resolve it.

Crash Log

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MyNewGraphViewController dataForXAxisWithLineNumber:]: unrecognized selector sent to instance 0x7f87afc52a90'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010d4f9d4b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000010cbf921e objc_exception_throw + 48
	2   CoreFoundation                      0x000000010d569f04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x000000010d47ee1e ___forwarding___ + 526
	4   CoreFoundation                      0x000000010d47eb88 _CF_forwarding_prep_0 + 120
	5   MySRL                               0x000000010796f769 -[MultiLineGraphView getDataFromDataSource] + 1193
	6   MySRL                               0x000000010796fc0a -[MultiLineGraphView drawGraph] + 170
	7   MySRL                               0x0000000107890227 -[MyNewGraphViewController viewDidLayoutSubviews] + 119
	8   UIKit                               0x000000010ad1db1c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1337
	9   QuartzCore                          0x000000010a8ffbf8 -[CALayer layoutSublayers] + 146
	10  QuartzCore                          0x000000010a8f3440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
	11  QuartzCore                          0x000000010a8f32be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
	12  QuartzCore                          0x000000010a881318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
	13  QuartzCore                          0x000000010a8ae3ff _ZN2CA11Transaction6commitEv + 475
	14  UIKit                               0x000000010ac837f0 _afterCACommitHandler + 346
	15  CoreFoundation                      0x000000010d49e267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	16  CoreFoundation                      0x000000010d49e1d7 __CFRunLoopDoObservers + 391
	17  CoreFoundation                      0x000000010d482f8e __CFRunLoopRun + 1198
	18  CoreFoundation                      0x000000010d482884 CFRunLoopRunSpecific + 420
	19  GraphicsServices                    0x000000010fb84a6f GSEventRunModal + 161
	20  UIKit                               0x000000010ac58c68 UIApplicationMain + 159
	21  MySRL                               0x000000010787bb5f main + 111
	22  libdyld.dylib                       0x000000010e48168d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

How to add my array of data to bar graph

{ GainValue = "3400724.4016"; LossValue = "37548804.2016"; ModelID = PMD000001; }, { GainValue = "370897181.1"; LossValue = "428497181.1"; ModelID = PMD000005; }, { GainValue = 362443356; LossValue = 362443356; ModelID = PMD000008; }
above is my array I want show gain and loss in bar I did not get where I want to give data

BAR chart Rotate

screen shot 2016-11-11 at 12 33 47 pm->
screen shot 2016-11-11 at 12 40 19 pm

i just wanna rotate bar view form x axis to y axis..
how to solve this

issue report

Analyzing dependencies
Pre-downloading: `drCharts` from `https://github.com/Zomato/DR-charts.git`
[!] The `drCharts` pod failed to validate due to 1 error:
    - WARN  | github_sources: Github repositories should end in `.git`.
    - ERROR | description: The description is empty.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.