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

Reformat Text On Slider When Use dynamic = False #2921

Closed
neocronomican opened this issue Aug 4, 2018 · 2 comments
Closed

Reformat Text On Slider When Use dynamic = False #2921

neocronomican opened this issue Aug 4, 2018 · 2 comments
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@neocronomican
Copy link

neocronomican commented Aug 4, 2018

Hi,

I want to ask about how to reformat string on a slider to be like (Year-Month-Date)?

I use code my_img = ds.to(hv.Image, groupby='date', dynamic = 'False') but the text on slider always messy. I have tried hv.Dimension.type_formatters[np.datetime64] = '%Y-%m-%d'. Also i try to use my_img = my_img.clone({np.datetime64(k, 'D'): v for k, v in my_img.items()}) unfortunately it is not working to reformat string on slider.

Thank you very much

@philippjfr philippjfr added this to the v1.11 milestone Aug 4, 2018
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Aug 4, 2018
@philippjfr
Copy link
Member

Looking into this now but I'm a bit confused about the dynamic = 'False' bit. This is a string and due to the truthiness it will evaluate to True.

@philippjfr
Copy link
Member

This has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants