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

Interactive Legend for Unit Specs #4732

Closed
wants to merge 5 commits into from

Conversation

djbarnwal
Copy link
Member

A step towards Issue #1657. Continuation of PR #4317

Legends can be interacted with when the mark encoding channels completely populate the selection fields.

vega-lite

if (updateValue.stroke) {
strokeValue = updateValue.stroke.value;
}
updateValue.stroke = [{test, value: strokeValue}, {value: '#aaaaaa'}];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this work on a black background? I think we need to use a config option for these.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was planning to remove these hard-coded values. @domoritz what would be the best possible place in the spec to have config options such as color, opacity values or disabling interactive legends. Should this be incorporated as an optional field for every mark encoding channel?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the Vega-Lite config for this. It might make sense to have a legend property as well that allows users to override the value from the config.

@arvind arvind added this to the 4.0 milestone May 17, 2019
@domoritz domoritz changed the title [WIP] Interactive Legend for Unit Specs Interactive Legend for Unit Specs Jul 7, 2019
@domoritz
Copy link
Member

It would be great to get this in. @djbarnwal are you still working on this?

@djbarnwal
Copy link
Member Author

It would be great to get this in. @djbarnwal are you still working on this?

@domoritz I am waiting for a review on this.

@arvind
Copy link
Member

arvind commented Aug 15, 2019

Superseded by #5305.

@arvind arvind closed this Aug 15, 2019
@kanitw kanitw modified the milestones: 4.1, 4.0 Dec 4, 2019
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

Successfully merging this pull request may close these issues.

4 participants