-
Notifications
You must be signed in to change notification settings - Fork 44
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
Separate fields and their format in options #21
Comments
@kanitw I suggested this because otherwise it's hard to distinguish between e.g. configuring the formatter and saying that a particular field should be displayed. |
I don't know what you two mean "name the field". (Is this VL or VG?) |
This mainly applies to vl but imaging in vg if you want to specify the format of one field but still display all fields in the tooltip. |
Sorry for the confusion. I just updated my original comment. By "name the field" I mean putting a field in |
Close as we discussed in #34: we will combine |
Currently, the complete structure of
options
look like this:For both Vega-Lite and Vega tooltips, if you want to specify the format of a field you have to put an object like
{field:..., format: ...}
intooptions.showFields[]
, and if you put in an object for one field you have to put in objects for all the other fields that you want to display in the tooltip (because the tooltip plugin right now assumes you only want to display the fields in theshowFields
array).It's better to separate fields and their formats. If a user wants to specify a format, she specifies the format -- it doesn't affect the "which fields get displayed" decision.
The text was updated successfully, but these errors were encountered: