zomato / dr-charts Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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.
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?
Any idea would be highly appreciated.
{ 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
In line chart i want to make it curved as per requirement.
Is there any properties for it?
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.
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:
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
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:
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
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
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
I'm facing issues are as follows.
drCharts (from
https://github.com/Zomato/DR-charts.git`)` required by Podfile
drCharts (= 1.3)
required by Podfile.lock
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
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.
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)
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.
Dear author, thanks for a great work.
I need to implement the following chart and I wonder if it's feasible with your library.
I have not found any examples or discussions of logarithmic axis while searching with google and StackOverflow, so I'm asking here.
Thanks in advance.
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)
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];
}
}
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
.
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.
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.
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];
}
I am using bar chart in iOS . How to manage long text labels on x-axis? in my case texts are overlapping with next point label
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.