{"action":"created","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/1232","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1232/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1232/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1232/events","html_url":"https://github.com/nnnick/Chart.js/pull/1232","id":89773108,"number":1232,"title":"More user editable properties for line elements","user":{"login":"etimberg","id":6757853,"avatar_url":"https://avatars.githubusercontent.com/u/6757853?v=3","gravatar_id":"","url":"https://api.github.com/users/etimberg","html_url":"https://github.com/etimberg","followers_url":"https://api.github.com/users/etimberg/followers","following_url":"https://api.github.com/users/etimberg/following{/other_user}","gists_url":"https://api.github.com/users/etimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/etimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etimberg/subscriptions","organizations_url":"https://api.github.com/users/etimberg/orgs","repos_url":"https://api.github.com/users/etimberg/repos","events_url":"https://api.github.com/users/etimberg/events{/privacy}","received_events_url":"https://api.github.com/users/etimberg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-20T13:57:58Z","updated_at":"2015-06-20T18:22:10Z","closed_at":"2015-06-20T15:07:48Z","pull_request":{"url":"https://api.github.com/repos/nnnick/Chart.js/pulls/1232","html_url":"https://github.com/nnnick/Chart.js/pull/1232","diff_url":"https://github.com/nnnick/Chart.js/pull/1232.diff","patch_url":"https://github.com/nnnick/Chart.js/pull/1232.patch"},"body":"The user can now edit the following properties for lines. They can be modified at the config level or at the dataset level.\r\n\r\n`borderCapStyle`set as `ctx.lineCap`\r\n`borderDash` passed to `ctx.setLineDash()`\r\n`borderDashOffset` set as `ctx.lineDashOffset`\r\n`borderJoinStyle` set as `ctx.lineJoin`\r\n\r\n## Dataset Level\r\n```javascript\r\ndata: {\r\n    datasets: [{\r\n        data: [],\r\n        borderCapStyle: 'butt',\r\n        borderDash: [5, 5],\r\n        borderDashOffset: 0,\r\n        borderJoinStyle: 'miter'\r\n    }\r\n}\r\n```\r\n\r\n## Config level\r\n```javascript\r\nconfig: {\r\n    options: {\r\n        elements: {\r\n            line: {\r\n                borderCapStyle: 'butt',\r\n                borderDash: [5, 5],\r\n                borderDashOffset: 0,\r\n                borderJoinStyle: 'miter'\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThese styles allow arbitrary dashed lines to be drawn fixing #964\r\n@tannerlinsley @derekperkins "},"comment":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/comments/113799719","html_url":"https://github.com/nnnick/Chart.js/pull/1232#issuecomment-113799719","issue_url":"https://api.github.com/repos/nnnick/Chart.js/issues/1232","id":113799719,"user":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars.githubusercontent.com/u/5580297?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T18:22:10Z","updated_at":"2015-06-20T18:22:10Z","body":"This is so cool "}}