-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
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
if I want to set the RadarLabel like this! #524
Comments
it's in drawRect: either figure out a way to dynamicly change your setting or disable the redrawLabels if you detect it's rotating, or just disable the rotate public override func drawRect(rect: CGRect)
{
super.drawRect(rect)
if (_dataNotSet)
{
return
}
let optionalContext = UIGraphicsGetCurrentContext()
guard let context = optionalContext else { return }
_xAxisRenderer?.renderAxisLabels(context: context) |
I want when it Rotating and the color and position of the TOP Label be changed only. but there have some Automatic calculation bothers me , |
I guess you have to write your own logic for what you want. If something bothers you, just override the method and take what you need. |
thank u very much |
if I want to set the RadarLabel like this!
public override func renderAxisLabels(context context: CGContext)
{
if (!_xAxis.isEnabled || !_xAxis.isDrawLabelsEnabled)
{
return
}
// drawLabel(context: context, label: label!, xIndex: i, x: p.x, y: p.y - _xAxis.labelRotatedHeight / 2.0, attributes: [NSFontAttributeName: labelFont, NSForegroundColorAttributeName: labelTextColor], anchor: drawLabelAnchor, angleRadians: labelRotationAngleRadians)
}else{
the QUESTION is 👍
the labelRotatedHeight and the Label color is changed, but when the RadarView Rotating! the Label will be reDraw and the setting is Invalid.
so where is the method of the label redraw and how could i setting?
thank u very much!
The text was updated successfully, but these errors were encountered: