# Gadfly can't do Time values?

**URL:** <https://discourse.julialang.org/t/gadfly-cant-do-time-values/71187>\
**Category:** Visualization\
**Tags:** gadfly\
**Created:** [November 9, 2021, 8:20am UTC](https://discourse.julialang.org/t/gadfly-cant-do-time-values/71187 "2021-11-09T08:20:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc-j-bourhis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luc-j-bourhis/32/13097_2.png) [@luc-j-bourhis](https://discourse.julialang.org/u/luc-j-bourhis)\
**Post date:** [November 9, 2021, 8:20am UTC](https://discourse.julialang.org/t/gadfly-cant-do-time-values/71187/1 "2021-11-09T08:20:13Z")

</div>

It seems that Gadly cannot handle Time on the x-axis (from Dates) as shown below. Would there be a package that could plug that hole? Or do I have to use Period instead as suggested by the error message? Or am I missing something entirely?

```julia
julia> x = [Time(9,m) for m in 0:5:55]                                                                                                                                                                                                     
12-element Vector{Time}:
 09:00:00
 09:05:00
 09:10:00
 09:15:00
 09:20:00
 09:25:00
 09:30:00
 09:35:00
 09:40:00
 09:45:00
 09:50:00
 09:55:00

julia> y = [i^2 for i in 1:12]                                                                                                                                                                                                             
12-element Vector{Int64}:
   1
   4
   9
  16
  25
  36
  49
  64
  81
 100
 121
 144

julia> plot(x=x, y=y)                                                                                                                                                                                                                      
Error showing value of type Plot:
ERROR: MethodError: no method matching one(::Type{Time})
Closest candidates are:
  one(::Union{Type{T}, T}) where T<:AbstractString at strings/basic.jl:262
  one(::Union{Type{P}, P}) where P<:Period at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Dates/src/periods.jl:54
  one(::CartesianIndex) at deprecated.jl:70
  ...

```

With Julia Version 1.6.3 and just installed Gadfly v1.3.4
