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

17488 legend color picker bugfix #17489

Conversation

varunsharma27
Copy link
Contributor

#17488 legend color picker bugfix

@elasticmachine
Copy link
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@timroes
Copy link
Contributor

timroes commented Apr 3, 2018

Jenkins, test this

@timroes timroes added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) review labels Apr 3, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@thomasneirynck
Copy link
Contributor

jenkins test this

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @varundbest

thanks for this. Seems to fix it

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are a couple of issues:

  • left/right positioned legend: opening the color picker covers all the other legend entries below the current one
    (this might not be bad, but its a change from current behaviour)

  • top legend: chart still shifts down a bit, since "filter in" and "filter out" buttons appear on a new line

  • bottom legend: color picker is not visible at all

@timroes
Copy link
Contributor

timroes commented Apr 12, 2018

In regards to building a custom chart component in EUI (elastic/eui#536) and replace our existing chart implementations by that, I wonder if we should touch this topic at all for the existing legend, if it's not that simple of a fix, and can cause multiple edge cases.

@varunsharma27
Copy link
Contributor Author

varunsharma27 commented Apr 13, 2018

  • Added a Special case for Top. Right and Left remains unchanged.

@ppisljar
How do you suggest to tackle Bottom?
I can make it similar to Top and set css 'bottom: 5% or 10%' but that might break a little (Position might be a little far or close) if the height of vis panel is too small or too large, what do you suggest?

@ppisljar
Copy link
Member

what about fixed bottom offset ? bottom: 0 or similar ?

@varunsharma27
Copy link
Contributor Author

@ppisljar Then the color picker will hide the legend toggle and user will be unable to get rid of it.
How to you feel about:-

position:  absolute;
bottom:  5%;
margin-bottom: 15px;
background-color:  white;

For bottom case?

@ppisljar
Copy link
Member

can you try applying all of the above to this PR so i can test it out easily ? thanks!

@varunsharma27
Copy link
Contributor Author

@ppisljar Changes Pushed.

@timroes
Copy link
Contributor

timroes commented May 4, 2018

Could you please rebase that on master, so we can get all the tests running with x-pack together and better check if there isn't an issue with regards to reporting?

@varunsharma27 varunsharma27 force-pushed the 17488-Legend-Color-Picker-Bugfix branch from 9722320 to 7ba68da Compare May 14, 2018 10:55
@timroes
Copy link
Contributor

timroes commented May 16, 2018

Jenkins, test this

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@varunsharma27
Copy link
Contributor Author

@ppisljar What do you feel?

@ppisljar
Copy link
Member

sorry for late response ...

there are still some issues:

clicking on a legend entry will move the chart for a pixel or two:
screenshot-localhost-5601 2018 05 23 10-54-55

if legend spreads multiple rows chart is not positioned correctly:
screenshot-localhost-5601 2018 05 23 10-54-32

Same happens for both the top and bottom position. Do you think those could be addressed ?

Thanks!

@varunsharma27
Copy link
Contributor Author

Sure, will look into those issues.

@rashmivkulkarni
Copy link
Contributor

can you pull master into this branch and re run the tests and address the feedback. Thanks.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@flash1293
Copy link
Contributor

Since so much has changed since this PR was opened (less to sass, new class names, new markup structure...) I will close this PR. The bug will be fixed by #30960

Thank you very much @varunsharma27 for working on this - your changes were the starting point for the new PR.

@flash1293 flash1293 closed this Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants