☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

GeoJSONDataSource - float formatting

Community Support
ISquared
ISquared

My dataframe that is converted to json before being read as a GeoJSONDataSource has a column of float values (a result of a calculations performed on the other columns…), which I round to two decimal places. These values are passed to the hover tool so the user can see them easily.

Upon hovering om the different glyphs In the map, small values (<1.0) of these floats are shown in a mathematical form, so 0.09 is 9e-2. This is not very user friendly for the client so I would like to change that. A bit of investigation showed me that once the dataframe is converted to json, the value format is still e.g. 0.09, so it is the GeoJSONDataSource that is set to display these values as e-2.

Can anyone suggest if there is any way at all this can be changed?

⌁   Link to post
Bryan
Bryan

Specifying formatting for hover tool fields is covered in the user’s guide

⌁   Link to post

End of archived discussion · Replies are disabled