-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add support for background, border, padding, etc. to Text
glyph
#12529
Comments
Hi @monadandan thanks for the issue! I am going to hold off on triaging this just yet. There is some clutter and duplication around label, labelset, and text currently. We'd like to plan a path to reduce that over time, so this will need to be a part of that wider discussion. |
Text
glyph
@monadandan, support for additional styling was added in PR #12655, so in bokeh 3.1 you will able to use |
In the long term we will probably deprecate
|
No one will know to do this without documentation, though, so an issue for updating the docs to present and demonstrate this possibility would be advised. |
Thank you so much! looking forward to bokeh 3.1! 😄 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Problem description
When I select a point, the other points become faded, but their corresponding labels do not become faded.
Here is a small example to demonstrate:
Feature description
I would like LabelSet to have a selection/non-selection visual option
Potential alternatives
The potential alternative to avoid this problem is to use a text glyph instead of a labelset, but LabelSet has some useful options that Text does not have (background_fill_alpha, background_fill_color, border_line_alpha, border_line_cap, border_line_dash, border_line_dash_offset, border_line_join, border_line_color, border_line_width).
The current alternative is to add a square glyph behind the Text glyph, as mentioned in this StackOverflow thread.
Here is a the example with the workaround implemented. The rectangles' widths could be tricky to set depending on the usage, which is a downside.
Additional information
I am using Bokeh 2.4.2 in the example.
Thank you in advance!
The text was updated successfully, but these errors were encountered: