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

Bad default formatting of numeric values in annotations #905

Closed
OLarionova-HORIS opened this issue Oct 18, 2023 · 0 comments
Closed

Bad default formatting of numeric values in annotations #905

OLarionova-HORIS opened this issue Oct 18, 2023 · 0 comments
Assignees
Milestone

Comments

@OLarionova-HORIS
Copy link
Collaborator

Example:

data = {
    'name': ['a', 'b', 'c'],
    'value': [10**(-5), 3*10**(-5), 6*10**(-5)]
}

ggplot(data) + \
    geom_pie(aes(fill=as_discrete('name', order_by='..count..'), weight='value'), 
                      labels=layer_labels().line('^slice'))
Screenshot 2023-10-18 at 14 15 11

Expected:
like in the tooltip - e-notation (3.000e-5)

@alshan alshan added this to the 2023Q4 milestone Oct 18, 2023
@OLarionova-HORIS OLarionova-HORIS self-assigned this Oct 24, 2023
@alshan alshan closed this as completed Nov 7, 2023
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