Added comments about possible alternate solutions

This commit is contained in:
Thatcher Chamberlin 2020-12-06 13:35:25 -05:00
parent e9e6750481
commit 9ab4c31d5c

View File

@ -94,6 +94,8 @@ function attr!(axis::Axis, args...; kw...)
for vi in v
discrete_value!(axis, vi)
end
#could perhaps use TimeType here, as Date and DateTime are both subtypes of TimeType
# or could perhaps check if dateformatter or datetimeformatter is in use
elseif k == :lims && isa(v, Tuple{Date,Date})
plotattributes[k] = (v[1].instant.periods.value, v[2].instant.periods.value)
elseif k == :lims && isa(v, Tuple{DateTime,DateTime})