{"action":"closed","issue":{"url":"https://api.github.com/repos/terezka/elm-plot/issues/32","repository_url":"https://api.github.com/repos/terezka/elm-plot","labels_url":"https://api.github.com/repos/terezka/elm-plot/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/terezka/elm-plot/issues/32/comments","events_url":"https://api.github.com/repos/terezka/elm-plot/issues/32/events","html_url":"https://github.com/terezka/elm-plot/issues/32","id":200835962,"number":32,"title":"Plot crashes on constant data and no defined domain","user":{"login":"krlu","id":1756987,"avatar_url":"https://avatars.githubusercontent.com/u/1756987?v=3","gravatar_id":"","url":"https://api.github.com/users/krlu","html_url":"https://github.com/krlu","followers_url":"https://api.github.com/users/krlu/followers","following_url":"https://api.github.com/users/krlu/following{/other_user}","gists_url":"https://api.github.com/users/krlu/gists{/gist_id}","starred_url":"https://api.github.com/users/krlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krlu/subscriptions","organizations_url":"https://api.github.com/users/krlu/orgs","repos_url":"https://api.github.com/users/krlu/repos","events_url":"https://api.github.com/users/krlu/events{/privacy}","received_events_url":"https://api.github.com/users/krlu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-14T23:15:48Z","updated_at":"2017-01-15T11:46:10Z","closed_at":"2017-01-15T11:46:10Z","body":"# Behavior \r\nFor a plot with only one series whose y value does not change, the plot crashes. \r\n\r\n# Expected Behavior \r\nShould plot a straight horizontal line\r\n\r\n# Example\r\ne.g. the following crashes\r\n```\r\nlet\r\n    test =\r\n      List.range 1 60\r\n      |> List.map (\\value -> (toFloat value, 10))\r\nin\r\n    plot\r\n      [ \r\n      ]\r\n      [ line\r\n        [ \r\n        ]\r\n        test\r\n      , xAxis\r\n        [ Axis.line [ ]\r\n        ]\r\n      ]\r\n```\r\n\r\n# Other notes\r\nThis is caused by the `getRange` function on line 21 in the package `Internal.Stuff `\r\n\r\n"}}
{"actor":{"display_login":"terezka"}}