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

The value_format of a Dimension is not applied to HoloMap widgets #548

Closed
mrksr opened this issue Mar 10, 2016 · 2 comments
Closed

The value_format of a Dimension is not applied to HoloMap widgets #548

mrksr opened this issue Mar 10, 2016 · 2 comments
Labels
Milestone

Comments

@mrksr
Copy link
Contributor

mrksr commented Mar 10, 2016

A kdim of a HoloMap can have a value_format-function. While this function does get applied to labels, the drop-down menu rendered into a jupyter notebook seems to not be affected.

Sample Code:

def data():
    return hv.Curve(np.cumsum(np.random.normal(size=(30))))

hv.HoloMap({
    'a': data(),
    'b': data(),
    'c': data()
}, kdims=[hv.Dimension("Letter", value_format=lambda x: "formatted: {}".format(x))])

Screenshot: Unformatted Drop-Down in Holomap

@philippjfr
Copy link
Member

Thanks for filing an issue on this. The same is true for the slider values which should in theory also support string labels, e.g. when working with timestamps that get formatted as a date. Hopefully we can get this into the next bugfix release.

@philippjfr philippjfr added this to the 1.4.4 milestone Mar 10, 2016
@philippjfr philippjfr added the type: feature A major new feature label Mar 10, 2016
@philippjfr philippjfr changed the title The value_format of a Dimension is not applied to HoloMap Dropdowns The value_format of a Dimension is not applied to HoloMap widgets Mar 15, 2016
@philippjfr philippjfr modified the milestones: v1.5.0, 1.4.4 Apr 20, 2016
@philippjfr
Copy link
Member

This has been fixed in #562. Closing.

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

No branches or pull requests

2 participants