{"action":"created","issue":{"url":"https://api.github.com/repos/dcjones/Gadfly.jl/issues/784","labels_url":"https://api.github.com/repos/dcjones/Gadfly.jl/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/dcjones/Gadfly.jl/issues/784/comments","events_url":"https://api.github.com/repos/dcjones/Gadfly.jl/issues/784/events","html_url":"https://github.com/dcjones/Gadfly.jl/issues/784","id":125694731,"number":784,"title":"X-axis borked for date data, can't seem to override","user":{"login":"IainNZ","id":692635,"avatar_url":"https://avatars.githubusercontent.com/u/692635?v=3","gravatar_id":"","url":"https://api.github.com/users/IainNZ","html_url":"https://github.com/IainNZ","followers_url":"https://api.github.com/users/IainNZ/followers","following_url":"https://api.github.com/users/IainNZ/following{/other_user}","gists_url":"https://api.github.com/users/IainNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/IainNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IainNZ/subscriptions","organizations_url":"https://api.github.com/users/IainNZ/orgs","repos_url":"https://api.github.com/users/IainNZ/repos","events_url":"https://api.github.com/users/IainNZ/events{/privacy}","received_events_url":"https://api.github.com/users/IainNZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-08T21:15:04Z","updated_at":"2016-01-28T21:59:15Z","closed_at":null,"body":"Check out http://pkg.julialang.org/pulse.html\r\n\r\nThe data spans multiple years, and once it went into 2016 the ticks become annual. I tried to override with `Scale.x_continuous` with the minvalue and maxvalue being set to specific dates, but it seemed to be ignored.\r\n\r\ne.g.\r\n```\r\nx_vals = [(Date(2014,2,1) + Dates.Day(i)) for i in 1:700]\r\ny_vals = [i for i in 1:700]\r\nplot(x=x_vals, y=y_vals, Geom.line)\r\n```\r\nshows the not-so-smart x-axis, and\r\n`Scale.x_continuous(minvalue=Date(2014,1,1),maxvalue=Date(2016,2,1))`\r\nis ignored"},"comment":{"url":"https://api.github.com/repos/dcjones/Gadfly.jl/issues/comments/176440215","html_url":"https://github.com/dcjones/Gadfly.jl/issues/784#issuecomment-176440215","issue_url":"https://api.github.com/repos/dcjones/Gadfly.jl/issues/784","id":176440215,"user":{"login":"IainNZ","id":692635,"avatar_url":"https://avatars.githubusercontent.com/u/692635?v=3","gravatar_id":"","url":"https://api.github.com/users/IainNZ","html_url":"https://github.com/IainNZ","followers_url":"https://api.github.com/users/IainNZ/followers","following_url":"https://api.github.com/users/IainNZ/following{/other_user}","gists_url":"https://api.github.com/users/IainNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/IainNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IainNZ/subscriptions","organizations_url":"https://api.github.com/users/IainNZ/orgs","repos_url":"https://api.github.com/users/IainNZ/repos","events_url":"https://api.github.com/users/IainNZ/events{/privacy}","received_events_url":"https://api.github.com/users/IainNZ/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T21:59:15Z","updated_at":"2016-01-28T21:59:15Z","body":"I tried #716, i.e.\r\n`Coord.cartesian(xmin=Date(2014,03,01), xmax=Date(2016,02,01)),`\r\nbut got\r\n```\r\nERROR: LoadError: MethodError: `/` has no method matching /(::Base.Dates.Millisecond, ::Base.Dates.Day)\r\nClosest candidates are:\r\n  /{P<:Base.Dates.Period}(::P<:Base.Dates.Period, ::P<:Base.Dates.Period)\r\n  /(::Base.Dates.Millisecond, ::AbstractFloat)\r\n  /{P<:Base.Dates.Period}(::P<:Base.Dates.Period, ::Real)\r\n  ...\r\n in resolve at /Users/idunning/.julia/v0.4/Compose/src/measure.jl:411\r\n```"}}