Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

135
Visualizações
Vega Lite - Filter out bar chart values by interacting with legend

I’m currently building a Vega-Lite chart and one requirement is that it needs to be interactive with the legend as you can see in the images below:

Vega lite bar chart | Vega lite bar chart filtered

The idea is that when I click on a legend item, the values matching in every bar should be filtered out (disappear) instead of being highlighted. I think it should be pretty straightforward but I doubt if it's possible.

Here's the prototype I'm currently building in Vega-Lite Editor

I'm currently using params for creating a binding with the legend and then transform > filter, but the result is that when I click, all the legend items are filtered out except the selected one.

Any idea or suggestion is more than welcome!

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda