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

does react-vega support any conditions? #365

Closed
XoBpawok opened this issue Mar 2, 2021 · 1 comment
Closed

does react-vega support any conditions? #365

XoBpawok opened this issue Mar 2, 2021 · 1 comment

Comments

@XoBpawok
Copy link

XoBpawok commented Mar 2, 2021

I know that it's wrapper only but idk why don't conditions work.
my case - is just change colot of bar chart on select type 'point'
it's like

params: [ { name: 'selected', select: { type: 'point' } } ]
and use it as
{ mark: { type: 'bar', fill: 'green' }, ..., fill: { condition: [ { param: 'selected', empty: false, value: 'red' } ] } }

@kanitw
Copy link
Member

kanitw commented Jul 21, 2021

you use param which in VL 5's feature, so this depends on #367

@kanitw kanitw closed this as completed Jul 21, 2021
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

No branches or pull requests

2 participants