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

Problem with marker in Swift #472

Closed
m0rt3nlund opened this issue Oct 13, 2015 · 2 comments
Closed

Problem with marker in Swift #472

m0rt3nlund opened this issue Oct 13, 2015 · 2 comments

Comments

@m0rt3nlund
Copy link

Hi!

I am getting an error saying Cannot assign a value of type 'BalloonMarker' to a value of type 'ChartMarker?'

BalloonMarker is the same as the Balloon marker in the demo.

Code:

let marker:BalloonMarker = BalloonMarker(color: UIColor.redColor(), font: UIFont(name: "Roboto", size: 15)!, insets: UIEdgeInsets(top: 8.0, left: 8.0, bottom: 8.0, right: 8.0))
marker.minimumSize = CGSizeMake(80.0, 40.0)

//Line with error
cell.chart.marker = marker

Is this a bug?

@m0rt3nlund
Copy link
Author

Problem was that I had created a subclass of ChartMarker... Sorry for this issue.

@channak
Copy link

channak commented Feb 26, 2016

Hi could you provide your working code? I am also facing the same problem.

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