Scatter Plot in Kibana Dashboard

Hi all,

We have created a dashboard with several plots regarding the status and parameters of a bunch of batteries during their use, charge and discharge.
Among other we have the classic lenses line and pie plots, for which the upper bar filters work marvelous.

However, there is some info for which the best plot is a simple scatter plot X-Y with some legend for each serial number of the battery for example. We have created this with Vega-Lite and it works okay but it is a pitty that the upper bar filters do not work with them. We end up having to change the vega code if we want to filter a particular period of time or battery serial number of each of the plots.

The question will therefore be: is there a way that the upper bar filters are taken into account in vega-lite plots? Or otherwise, is it possible to do some scatter plots with Lens?

Thank you very much,
Rober

Hi there! You can wire up your Vega vis to the time range by including %timefield%: mytimefieldname at the top level of your "url" configuration.

%context%: true will also bring in any filters defined on the dashboard.

Example

  data: {
    url: {
      %context%: true
      %timefield%: order_date
      index: kibana_sample_data_ecommerce
      body: {
        aggs: {
          categories: {

This is all from our tutorial.

Does that help?

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.