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

ChartMarker don't draw #293

Closed
noais opened this issue Aug 11, 2015 · 3 comments
Closed

ChartMarker don't draw #293

noais opened this issue Aug 11, 2015 · 3 comments

Comments

@noais
Copy link
Contributor

noais commented Aug 11, 2015

With out embedded binaries, using directly the swift files. On the class ChartMarker the method refreshContent is not called.

I found where is the problem on the class ChartViewBase in the func drawMarkers the var drawMarkers is false. I don't know why, but if I remove this var works nicely.

I'm using the same example code class BalloonMarker.

@liuxuan30
Copy link
Member

First, in my code, it is true by default.

/// if set to true, the marker is drawn when a value is clicked
    public var drawMarkers = true

Second, it's a public variable, so you can define its value after you created your chartView like chartView.drawMarkers = true

@noais
Copy link
Contributor Author

noais commented Aug 12, 2015

I forced to be true and now works. I suppose by default it was true because is set to true.

Is possible use drawMarkers with Highligh disable on the LineChartDataSet? I don't want to see the orange crossed line to see the marker.

@danielgindi
Copy link
Collaborator

Yes it is, and you can control the visibility of the highlight lines too

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

3 participants