Skip to content

labels: false option has no effect #1

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

Closed
sethvincent opened this issue Aug 24, 2016 · 4 comments
Closed

labels: false option has no effect #1

sethvincent opened this issue Aug 24, 2016 · 4 comments

Comments

@sethvincent
Copy link

Setting options to { labels: false } didn't hide the labels as expected.

I guess if I really didn't want to show labels I could just remove them from the data object.

Is this something that would be handled completely in this module?

I can take a look & make a fix for this.

@mathisonian
Copy link
Member

Do you think its redundant to be able to have a labels option and specify them (or not) in the data object? I think thats the change @freeman-lab made here, but we forgot to remove it from the sample-options.json.

I don't really have a problem with letting a user explicitly turn them on/off in the options while leaving them in the data object.

That commit above should show the logic needed to restore the option

@sethvincent
Copy link
Author

For a basic usage example it does seem somewhat redundant. Maybe easier for programmatic usage to have a boolean option rather than change the data object, but I'm not convinced that's a big deal.

It looks like this is the only viz type that had the labels option, so I'd vote for making them all have the same API, include data.labels to show them or don't include them. That's an easy docs fix.

@mathisonian
Copy link
Member

👍 sounds good to me

@sethvincent
Copy link
Author

Updated the PR to remove mentions of options.labels: #2

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