-
Notifications
You must be signed in to change notification settings - Fork 795
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
Expand and document support for column names with special characters #2905
Conversation
Its good to document this! I keep having the same question that I do not yet see answered. I know why special characters are not allowed when using: shorthand='column_cannot_have_special_characters:Q'` but are special characters allowed if one define it using field='column_with_special_character', type='quantitative' Eg. I found out that |
Good point, currently the long form with explicit It is too bad we cannot show an informative message when |
I think the escaping of colons is a feature of using shorthand and should not become a feature of field. Also I'm fine with the possibility of finding nested data using the brackets. I use this approach myself sometimes and is also used in VL here: https://vega.github.io/vega-lite/examples/facet_bullet.html and in Altair https://stackoverflow.com/a/55214346/2459096 |
Co-authored-by: Mattijn van Hoek <[email protected]>
Agree. I added a note in the docs about them not having to be escaped in the long form.
Yes, I also like having this, just wish it was immediately clear when this is happening, e.g. instead of showing an empty plot it would be great if VL outputed an error message along the lines of "No nested attribute found in the data" or similar. But nothing we can do about that here; this is good to merge from my side. |
Continuing on some of the discussion in #2824. This issue has been raised a few times in the past so thought it was worth documenting and supporting slightly better:
transform_fold
does not work if hyphen (-
) in column name #2600Updated docs: