I’m trying to draw a line on X-axis with time series dataset
Here is a minimal working example
using Gadfly, Compose
y = broadcast(i -> i^2, 1:30)
line_anno = compose(context(), stroke("red"), Shape.line([(10, 0), (10, 1000)]))
# works fine
plot(x = 1:30, y = y, Geom.line, Guide.annotation(line_anno))
# do not work
x = broadcast(i -> DateTime(2000, 1, i), 1:30)
plot(x = x, y = y, Geom.line, Guide.annotation(line_anno))
# do not work either
d = Date(2000, 1, 10)
date_anno = compose(context(), stroke("red"), Shape.line([(d, 0), (d, 1000)]))
thank you