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

Tooltip format for variable is not working #401

Closed
alshan opened this issue Jul 1, 2021 · 2 comments
Closed

Tooltip format for variable is not working #401

alshan opened this issue Jul 1, 2021 · 2 comments
Assignees

Comments

@alshan
Copy link
Collaborator

alshan commented Jul 1, 2021

In the example: https://nbviewer.jupyter.org/github/JetBrains/lets-plot/blob/master/docs/examples/jupyter-notebooks/tooltip_config.ipynb

I've modified one cell as:

# Change format for the "size" aesthetic which is already shown in the tooltip by default.
p + geom_point(shape=21, 
               color='white', 
#                tooltips=layer_tooltips().format('^size', '{.0f} mpg'))
               tooltips=layer_tooltips().format('hwy', '.4f'))

as a result the value is not formatted:
image

@alshan alshan added this to the 2021Q3 milestone Jul 1, 2021
@OLarionova-HORIS OLarionova-HORIS self-assigned this Jul 2, 2021
@OLarionova-HORIS
Copy link
Collaborator

Currently, aes and var formats are not interchangeable, i.e. var format will not be applied to aes, mapped to this variable (we see aes in the default tooltip).
The same situation in issue #388.

@OLarionova-HORIS
Copy link
Collaborator

Fixed: #409.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants