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

Determine if we want to include default interaction & what to include #1658

Open
kanitw opened this issue Nov 2, 2016 · 3 comments
Open
Assignees

Comments

@kanitw
Copy link
Member

kanitw commented Nov 2, 2016

As discussed briefly in #1657

@domoritz raises a very important point.

The problem is that I don't know what channel we would use (e.g. for highlighting) and how we resolve conflicts if the user uses that channel to encode data.

@kanitw
Copy link
Member Author

kanitw commented Nov 2, 2016

In Vega-Lite, maybe it might be too much to always assume default interactions.

Similar to how we allow Polestar / Voyager 2's unit spec to overlay line/area with point as markers,
we can add a mode that automatically add interactions when this flag.
In this mode, we can make stronger assumption such as that users won't map fields to opacity and use opacity to encode selected (that's what Tableau does).

That said, for multi-views, think might gets trickier with multi-views that renders different data sources. (In Tableau, it seems like they don't link views by default in this case.)

(Since all of these "normalizer" is done before we construct Models in the compiler, it can be decoupled as another wrapper library / plugins. That's another conversation.)

@g3o2
Copy link
Contributor

g3o2 commented Nov 3, 2016

It probably depends on what kinds of interaction would be set as default and for which type of displays. Tooltips or markers are no problem, for they do not fundamentally change the display. However, any interaction that adds, rescales or filters marks is likely to be more difficult for the user to understand and for the developer to predict.

@kanitw kanitw changed the title Determine if we want to include default interaction Determine if we want to include default interaction & what to include Nov 3, 2016
@kanitw kanitw modified the milestone: 2.0.0-α-4 Interactions Jan 16, 2017
@kanitw
Copy link
Member Author

kanitw commented Jan 16, 2017

Notes from a discussion last week:

  • The problem with default interaction is that it's hard to override.
  • At the same time, it can be really useful. We were considering a special config.interactive flag that augment a static spec with a set of default interactions (if the config.interactive = true). This way users can add default interaction if desired and if they do not, they do not have to worry about overriding this and that.

@kanitw kanitw modified the milestones: 2.0.0-β Interactions Follow-up, 2.x.x Features & Patches Jun 29, 2017
@kanitw kanitw modified the milestones: 2.x.x Other Features & Patches, 2.x Interaction Patches May 9, 2018
@kanitw kanitw self-assigned this Mar 31, 2019
@kanitw kanitw modified the milestones: 4.x, soon? May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants