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
firstItem = RKPieChartItem(ratio: 50, color: UIColor.orange) chartView = RKPieChartView(items: [firstItem]) chartView.circleColor = .green chartView.translatesAutoresizingMaskIntoConstraints = false chartView.arcWidth = 10 chartView.isIntensityActivated = false chartView.style = .round chartView.isTitleViewHidden = true chartView.isAnimationActivated = false self.view.addSubview(chartView)
button click function
@IBAction func clickTest(_ sender: Any) { firstItem = RKPieChartItem(ratio: 80, color: UIColor.orange) }
this doens't work.
The text was updated successfully, but these errors were encountered:
ablan star bebeğim
Sorry, something went wrong.
I have solution, but I think it is not good firstly you should remove your chart view from its superview and initialize again
@IBAction func clickTest(_ sender: Any) { chartView.removeFromSuperview() firstItem = RKPieChartItem(ratio: 80, color: UIColor.orange) chartView = RKPieChartView(items: [firstItem]) chartView.circleColor = .green chartView.translatesAutoresizingMaskIntoConstraints = false chartView.arcWidth = 10 chartView.isIntensityActivated = false chartView.style = .round chartView.isTitleViewHidden = true chartView.isAnimationActivated = false self.view.addSubview(chartView) }
No branches or pull requests
button click function
this doens't work.
The text was updated successfully, but these errors were encountered: