Skip to content
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

ChartViewDelegate #2978

Closed
alimardani1994 opened this issue Nov 12, 2017 · 2 comments
Closed

ChartViewDelegate #2978

alimardani1994 opened this issue Nov 12, 2017 · 2 comments

Comments

@alimardani1994
Copy link

Value of type 'ViewController' does not conform to 'ChartViewDelegate' in assignment

I've implement ChartViewDelegate but horizontalbarchart cannot recognise it and show me above error.

@liuxuan30
Copy link
Member

Check out ChartsDemo for ref.

@alimardani1994
Copy link
Author

class RiseAndFallViewController: UIViewController,ChartViewDelegate {
func chartValueSelected(chartView: ChartViewBase, entry: ChartDataEntry, dataSetIndex: Int, highlight: Highlight) {
print("")
}

@IBOutlet weak var RiseAndFall: HorizontalBarChartView!

override func viewDidLoad() {
RiseAndFall.delegate = self
}
}

this is my code, and I'm getting above error, could you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants