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

Is there a way to hide the legend? #534

Closed
ghost opened this issue Dec 2, 2016 · 5 comments
Closed

Is there a way to hide the legend? #534

ghost opened this issue Dec 2, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 2, 2016

If there is, I can't find it in the code, nor in the docs. Any ideas?

@chaosmail
Copy link
Contributor

Hi @johannds
you can do a lot of awesome styling directly with CSS. You can hide the legend via

.chart-legend {
  display: none;
}

Here is a quick demo http://codepen.io/chaosmail/pen/bBaXyN

Best,
Christoph

@sqnkov
Copy link

sqnkov commented Dec 9, 2016

There appears to be a drawLegend: false option, which defaults to true but the override in the options scope does not work for me.

@TempestSpectre
Copy link

@ghost
Copy link
Author

ghost commented Dec 21, 2016 via email

@sqnkov
Copy link

sqnkov commented Dec 21, 2016

@TempestSpectre , CSS works, but I was hoping for a built-in method. But hey.. CSS wroks.

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