We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What did you do? I want to change the color of the text individually and distinguish percentages of colors and text colors.
What did you expect to happen?
Can not set the text color alone, invalid
Like this(DEMO): #import "PieChartViewController.h" PieChartViewController
_chartView.entryLabelColor = UIColor.blackColor; _chartView.entryLabelFont = [UIFont fontWithName:@"HelveticaNeue-Light" size:12.f]; [data setValueFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:11.f]]; [data setValueTextColor:UIColor.whiteColor];
**Charts version Number:3.2.0 **Xcode version:10.0 **Swift version:4.2 **Platform(s) running Charts:iOS **macOS version running Xcode:10.14
The text was updated successfully, but these errors were encountered:
{ ChartUtils.drawText( context: context, text: pe!.label!, point: CGPoint(x: labelPoint.x, y: labelPoint.y + lineHeight), align: align, attributes: [ NSAttributedString.Key.font: entryLabelFont ?? valueFont, NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]
you shouldn't set two color at the same time.
Sorry, something went wrong.
No branches or pull requests
What did you do?
I want to change the color of the text individually and distinguish percentages of colors and text colors.
What did you expect to happen?
Can not set the text color alone, invalid
Like this(DEMO):
#import "PieChartViewController.h"
PieChartViewController
**Charts version Number:3.2.0
**Xcode version:10.0
**Swift version:4.2
**Platform(s) running Charts:iOS
**macOS version running Xcode:10.14
The text was updated successfully, but these errors were encountered: