☰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

How set Italian date (day mounth year ) in the figure(.. x_axis_type='datetime',..)

Community Supportbokeh
mauroDia
mauroDia

Thanks YOU, this works very fine:
p.xaxis.formatter = DatetimeTickFormatter(microseconds = ‘%fus’
,milliseconds = ‘%3Nms’
,seconds = ‘%Ss’
,minsec = ‘:%M:%S’
,minutes = ‘:%M’
,hourmin = ‘%H:%M’
,hours = ‘%Hh’
,days = ‘%d/%b’
,months = ‘%b/%Y’
,years = ‘%Y’)
Only one things: the name of the mounths is in English, can I translate in Italian?
Kind regards
Mauro

⌁   Link to post
Bryan
Bryan

Bokeh uses the timezone library internally to process the format:

It appears that timezone might support different localizations. I am not sure if that support is always built-in or requires additional resource bundles to function. Either way, we could potentially expose the locale property and pass it to timezeone but that would be future development. I’d encourage you to open a GitHub Issue about it.

In the mean time, I think you would need to use CustomJSHover to format manually for now. (Note, if you try this route, that datetime axis values are represented as floating point milliseconds-since-epoch).

⌁   Link to post

End of archived discussion · Replies are disabled