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

Hide specific legend not all #2576

Closed
zohaibbrohi opened this issue Jul 4, 2017 · 1 comment
Closed

Hide specific legend not all #2576

zohaibbrohi opened this issue Jul 4, 2017 · 1 comment

Comments

@zohaibbrohi
Copy link

I have a graph with 3 different values.
I have 3 legends but I want to hide 1 legend. Is it possible
For hiding all I can use legend.enable = false. But I want to hide it when setting LineChartDataSet.
In this picture I have 2 legend. One with text speed and other without text. I want to disable the dot as well.

screen shot 2017-07-04 at 1 34 27 pm

@liuxuan30
Copy link
Member

you need to override the legend renderer e.g.

open func renderLegend(context: CGContext)

to ignore certain values

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