{"action":"created","issue":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/629","repository_url":"https://api.github.com/repos/gionkunz/chartist-js","labels_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/629/comments","events_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/629/events","html_url":"https://github.com/gionkunz/chartist-js/pull/629","id":137526241,"number":629,"title":"Prevent negative value for foreignObject width attribute","user":{"login":"joserobleda","id":1263865,"avatar_url":"https://avatars.githubusercontent.com/u/1263865?v=3","gravatar_id":"","url":"https://api.github.com/users/joserobleda","html_url":"https://github.com/joserobleda","followers_url":"https://api.github.com/users/joserobleda/followers","following_url":"https://api.github.com/users/joserobleda/following{/other_user}","gists_url":"https://api.github.com/users/joserobleda/gists{/gist_id}","starred_url":"https://api.github.com/users/joserobleda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joserobleda/subscriptions","organizations_url":"https://api.github.com/users/joserobleda/orgs","repos_url":"https://api.github.com/users/joserobleda/repos","events_url":"https://api.github.com/users/joserobleda/events{/privacy}","received_events_url":"https://api.github.com/users/joserobleda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-01T09:57:52Z","updated_at":"2016-03-01T10:22:49Z","closed_at":"2016-03-01T10:22:03Z","pull_request":{"url":"https://api.github.com/repos/gionkunz/chartist-js/pulls/629","html_url":"https://github.com/gionkunz/chartist-js/pull/629","diff_url":"https://github.com/gionkunz/chartist-js/pull/629.diff","patch_url":"https://github.com/gionkunz/chartist-js/pull/629.patch"},"body":"When I create a line chart with a custom offset like this:\r\n\r\n`````js\r\nChartist.Line(Node, {labels, series}, {\r\n  axisY: {\r\n    offset: 0\r\n  }\r\n})\r\n````\r\nI'm getting this error:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1263865/13423515/a45b846e-df9b-11e5-8ab0-e5c4fb1a8249.png)\r\n\r\n\r\nI can't figure it out why this `- 10` [in this line](https://github.com/gionkunz/chartist-js/blob/develop/src/scripts/core.js#L885) is necessary, but looks like it is some hard coded value, and removing it resolves problem.\r\n\r\nI'm presume this will cause a visual change for the apps which are currently using the lib. Anyway, I've readed the contributing file, but let me know if this PR is ok\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/comments/190651267","html_url":"https://github.com/gionkunz/chartist-js/pull/629#issuecomment-190651267","issue_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/629","id":190651267,"user":{"login":"rodrigm","id":890208,"avatar_url":"https://avatars.githubusercontent.com/u/890208?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigm","html_url":"https://github.com/rodrigm","followers_url":"https://api.github.com/users/rodrigm/followers","following_url":"https://api.github.com/users/rodrigm/following{/other_user}","gists_url":"https://api.github.com/users/rodrigm/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigm/subscriptions","organizations_url":"https://api.github.com/users/rodrigm/orgs","repos_url":"https://api.github.com/users/rodrigm/repos","events_url":"https://api.github.com/users/rodrigm/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigm/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T10:22:49Z","updated_at":"2016-03-01T10:22:49Z","body":":heart_eyes: "}}