{"action":"closed","issue":{"url":"https://api.github.com/repos/wireservice/leather/issues/53","repository_url":"https://api.github.com/repos/wireservice/leather","labels_url":"https://api.github.com/repos/wireservice/leather/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/wireservice/leather/issues/53/comments","events_url":"https://api.github.com/repos/wireservice/leather/issues/53/events","html_url":"https://github.com/wireservice/leather/issues/53","id":156030102,"number":53,"title":"Can't set temporal scale for line graph","user":{"login":"aepton","id":470427,"avatar_url":"https://avatars.githubusercontent.com/u/470427?v=3","gravatar_id":"","url":"https://api.github.com/users/aepton","html_url":"https://github.com/aepton","followers_url":"https://api.github.com/users/aepton/followers","following_url":"https://api.github.com/users/aepton/following{/other_user}","gists_url":"https://api.github.com/users/aepton/gists{/gist_id}","starred_url":"https://api.github.com/users/aepton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aepton/subscriptions","organizations_url":"https://api.github.com/users/aepton/orgs","repos_url":"https://api.github.com/users/aepton/repos","events_url":"https://api.github.com/users/aepton/events{/privacy}","received_events_url":"https://api.github.com/users/aepton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wireservice/leather/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/wireservice/leather/labels/priority-normal","name":"priority-normal","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-20T19:03:25Z","updated_at":"2016-06-10T19:31:32Z","closed_at":"2016-06-10T19:31:32Z","body":"I have a list of tuples like:\r\n\r\n`data = [(datetime.date(2001, 1, 1), 1000),(datetime.date(2001, 2, 1), 2000), etc...]`\r\n\r\nand am instantiating a chart like so:\r\n\r\n`chart = leather.Chart(title)`\r\n`chart.set_x_scale(leather.Temporal(data[0][0], data[-1][0]))`\r\n`chart.add_lines(data)`\r\n\r\nBut am getting the following error:\r\n\r\n`unsupported operand type(s) for /: 'datetime.timedelta' and 'datetime.timedelta'`\r\n\r\nCulprit appears to be on line 25 of temporal.py, in `project()`:\r\n\r\n`pos = (value - self._min) / (self._max - self._min)`\r\n"}}
{"actor":{"display_login":"onyxfish"}}