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

How to format arrays of floats? #445

Open
jembishop opened this issue Sep 12, 2023 · 2 comments
Open

How to format arrays of floats? #445

jembishop opened this issue Sep 12, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@jembishop
Copy link

Hi I have a DataGrid which has a column type whose value can be an array of floats.
I can't seem to be able to find a way to format these values to a certain number of decimal places.
The format=".3f" option doesn't seem to apply to array values. Also I can't seem to find a Vega expression which would work here, as there does not appear to be a map function which I could use with format.

Is it possible to do this? Thanks

@martinRenou martinRenou added the enhancement New feature or request label Sep 13, 2023
@martinRenou
Copy link
Member

AFAIK there is no way to achieve this with the current implementation of ipydatagrid

@martinRenou
Copy link
Member

If you don't mind, I'll keep this issue open and tag it as feature request :)

@martinRenou martinRenou reopened this Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants