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

[Bug] Vega visualizations renders 2 controls #23514

Closed
cchaos opened this issue Sep 25, 2018 · 7 comments
Closed

[Bug] Vega visualizations renders 2 controls #23514

cchaos opened this issue Sep 25, 2018 · 7 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Vega Vega visualizations Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@cchaos
Copy link
Contributor

cchaos commented Sep 25, 2018

Kibana version: Master

Server OS version: All

Browser version: All

Describe the bug: Vega visualization adds two control areas, one is slightly hidden.

Steps to reproduce:

  1. Create a new Vega visualization
  2. Copy and paste this json
  3. Look for the cutoff control at the bottom

Expected behavior:
Only one of these control areas should be rendered.

Screenshots (if relevant):
screen shot 2018-09-25 at 14 35 32 pm

screen shot 2018-09-25 at 14 25 58 pm

@cchaos cchaos added bug Fixes for quality problems that affect the customer experience Feature:Vega Vega visualizations Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Sep 25, 2018
@cchaos
Copy link
Contributor Author

cchaos commented Sep 25, 2018

cc @nyurik

@timroes
Copy link
Contributor

timroes commented Oct 17, 2018

As a reminder: There is code specific to this bug in src/core_plugins/vega/public/_vega_vis.scss (once #23513 is merged) that should be removed together with the fix for this issue.

@lizozom lizozom self-assigned this Feb 13, 2019
@lizozom
Copy link
Contributor

lizozom commented Feb 13, 2019

@cchaos seems like the bug is resolved. Can you confrm?

vega

@nyurik
Copy link
Contributor

nyurik commented Feb 13, 2019

The issue is still there - tested after migrating to the latest Vega with #30628

To reproduce, use some vega graph from docs, e.g. arc mark, move the mouse over the graph, click view source, and copy it to Kibana. Examine the HTML tree - observe there are two copies of the same block - one next to the canvas, and one in a separate dedicated controls container.
image

@lizozom
Copy link
Contributor

lizozom commented Feb 17, 2019

The issue is due to a bug in Vega: Adding a tooltip handler to a plot that uses a custom controls area, resets the plugin, and starts using the internal controls area.

I opened a bug on the vega project, and it will be solved in Vega 5.

@nyurik
Copy link
Contributor

nyurik commented Feb 17, 2019

Also note that controls have a few customization options (signal binding placement) that might need some visualization/styling cleanup. This might only tangentially be related to this issue.

@lizozom lizozom mentioned this issue Feb 18, 2019
4 tasks
@stratoula
Copy link
Contributor

I think this should close as we upgraded to vega5, cant reproduce it either cc @lizozom

@lizozom lizozom closed this as completed Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Vega Vega visualizations Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants