Coder Social home page Coder Social logo

Comments (8)

nyurik avatar nyurik commented on September 14, 2024 1

This is the expected behavior. Filters do not save with Vega. Instead, you can create your own query inside the Vega spec, and set any needed filtering there as part of the actual ES query.
If you want your query to also depend on the context, in addition to the query params you specified, you can use things like %dashboard_context-must_clause% (see readme).

from kibana-vega-vis.

thekofimensah avatar thekofimensah commented on September 14, 2024

Oh sweet, I didn't see that before, thanks!

from kibana-vega-vis.

thekofimensah avatar thekofimensah commented on September 14, 2024

@nyurik Are there plans to make it possible for one to either attach the vega to a saved search or attaching a filter/search to it?

from kibana-vega-vis.

nyurik avatar nyurik commented on September 14, 2024

@seanziee I'm not sure I understand - what do you mean by attaching vis to a saved search? Is that a standard Kibana feature? Please elaborate. thx

from kibana-vega-vis.

thekofimensah avatar thekofimensah commented on September 14, 2024

Yes, it is a standard feature. If you go to create a bar chart for example, after clicking on bar chart, you go to a screen that says choose an index or Saved search to use with the visual. That's one way to restrict the data on a visual.

The other way is when you're in the process of creating the visual (like bar chart or most others), there is the standard lucene search bar at the top of the screen that you can send lucene queries for filtering out data for the visual. The Vega visual has that bar, but if you enter a search parameter and save the Vega visual, the search/filter doesn't save with the visual. Does that make sense? You can do it inside the Vega script but it would be nice to also do it with lucene on the top bar (for less technical users who don't want to look at the Vega source).

from kibana-vega-vis.

nyurik avatar nyurik commented on September 14, 2024

@seanziee this sounds like an interesting enhancement, but I really want others to look at it too. Could you file this as an enhancement request, with all the details, at https://github.com/elastic/kibana/issues ? Thx!

from kibana-vega-vis.

thekofimensah avatar thekofimensah commented on September 14, 2024

Just created it here.

:D

from kibana-vega-vis.

neosdutertre avatar neosdutertre commented on September 14, 2024

Where it would still be useful there is a workaround using index aliases:
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html

from kibana-vega-vis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.