-
Notifications
You must be signed in to change notification settings - Fork 26
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
allow no label and still have a collapsible item #11
Comments
Thanks for reporting this. I'll take a look later. Also, feel free to submit a PR if you have a fix for it. |
The first part of the issue is intentional. If you want to legend with a single entry and no label to be collapsible, you can set As for the second part, I couldn't reproduce the issue. Can you provide an example for it? Thanks. |
Simply remove/rename the "name" key from the legends list and the item is no longer collapsible. Below is an edit of the Example to show this. Note the name is not shown (as expected), but there is no ability to collapse the elements (a problem): `
` |
One work-around is to use |
As for the "undefined", it appears when the html key is not included (not the label key as I originally reported above) |
Thanks for clarifying this. I looked at the first case again and the current behavior is intentional because right now I don't see an elegant way of having a collapsible legend without a label. |
Currently if the legend entry does not have a label value , the entry is not collapsible. And a missing label key causes "undefined" to be shown on the legend.
The text was updated successfully, but these errors were encountered: