Makie density() and datetime

Is there an easy way to get a density from a DateTime vector in Makie? Thanks!

I found my own solution…

density(Dates.datetime2epochms.(p),
 axis = (; xtickformat = x -> string.(Date.(Dates.epochms2datetime.(x))), xticklabelrotation = π/5)
)
1 Like