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

Vega tooltip is slow and displays the same value #21122

Closed
ppf2 opened this issue Jul 24, 2018 · 5 comments
Closed

Vega tooltip is slow and displays the same value #21122

ppf2 opened this issue Jul 24, 2018 · 5 comments
Labels
Feature:Vega Vega visualizations Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed

Comments

@ppf2
Copy link
Member

ppf2 commented Jul 24, 2018

6.3.1

Consider a visualization with this layer:

{
      "mark": {
        "type": "line",
        "color": "#659CCA",
        "point": {"color": "blue"},
        "interpolate": "monotone"
      },
      "encoding": {
        "x": {
          "field": "time",
          "type": "temporal",
          "interval": "day",
          "axis": {
            "format": "%Y-%m-%d %H:%M:%S.%L",
            "title": false,
            "labelAngle": -45
          }
        },
        "y": {
          "field": "dom",
          "type": "quantitative",
          "axis": {"title": "dom time(blue)"}
        },
        "tooltip": {"field": "dom", "type": "quantitative"}
      }
    }

tooltip

There are 2 issues here:

  • Tooltip seems slow, generally takes ~2s for it to show up
  • Tooltip appears to always show the same value.
@ppf2 ppf2 added the Feature:Vega Vega visualizations label Jul 24, 2018
@timroes timroes added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) triage_needed labels Aug 7, 2018
@timroes
Copy link
Contributor

timroes commented Aug 7, 2018

cc @nyurik

@nyurik
Copy link
Contributor

nyurik commented Aug 7, 2018

@ppf2 thx for reporting. Could you go into browser dev tool / console window, and type JSON.stringify(VEGA_DEBUG.vega_spec), and copy its result to a file, zip it, and attach it to this ticket? Thanks!

@ppf2
Copy link
Member Author

ppf2 commented Aug 8, 2018

json.txt
here you go, thx!

@nyurik
Copy link
Contributor

nyurik commented Aug 8, 2018

@ppf2 i'm not sure about the performance (try your full graph in https://vega.github.io/editor/#/ - see if you have the same issues there. Make sure to add "width": 300, "height": 300, as the top element though).

As for the identical values - you have two tooltips - on the blue line and another on the blue symbols (dots). Each dot is different, so you get different values for each. But the whole line is basically a single object, so you get the same tooltip anywhere on the line. I think it uses either the very first or very last datapoint for the line tooltip.

@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Sep 13, 2018
@timroes
Copy link
Contributor

timroes commented Mar 18, 2021

Closing this issue due to inactivity.

We are trying to keep our issues to a manageable amount, which means we are trying to close issues we cannot reproduce or gather required information for some time. Please feel free to still provide the requested information in case the issue still persists on an up-to-date Kibana version. We will gladly reopen this issue again.

@timroes timroes closed this as completed Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Vega Vega visualizations Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed
Projects
None yet
Development

No branches or pull requests

3 participants