{"action":"opened","issue":{"url":"https://api.github.com/repos/FVANCOP/ChartNew.js/issues/481","repository_url":"https://api.github.com/repos/FVANCOP/ChartNew.js","labels_url":"https://api.github.com/repos/FVANCOP/ChartNew.js/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/FVANCOP/ChartNew.js/issues/481/comments","events_url":"https://api.github.com/repos/FVANCOP/ChartNew.js/issues/481/events","html_url":"https://github.com/FVANCOP/ChartNew.js/issues/481","id":192044105,"number":481,"title":"Incorrect drawn vertical lines","user":{"login":"luna2761","id":10071245,"avatar_url":"https://avatars.githubusercontent.com/u/10071245?v=3","gravatar_id":"","url":"https://api.github.com/users/luna2761","html_url":"https://github.com/luna2761","followers_url":"https://api.github.com/users/luna2761/followers","following_url":"https://api.github.com/users/luna2761/following{/other_user}","gists_url":"https://api.github.com/users/luna2761/gists{/gist_id}","starred_url":"https://api.github.com/users/luna2761/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luna2761/subscriptions","organizations_url":"https://api.github.com/users/luna2761/orgs","repos_url":"https://api.github.com/users/luna2761/repos","events_url":"https://api.github.com/users/luna2761/events{/privacy}","received_events_url":"https://api.github.com/users/luna2761/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T16:01:36Z","updated_at":"2016-11-28T16:01:36Z","closed_at":null,"body":"Hello!\r\n\r\nI've downloaded the latest version of ChartNew.js and have a problem, very close to the one, appeared in Issue#310 - line is not vertical&incorrect.\r\nI need to create 2 vertical lines for first two labels, for example. So\r\n\r\n```\r\nvar mydata = {\r\n            labels: ['first', 'second', 'third', 'fourth'],\r\n            datasets: [\r\n                {\r\n                    //type: \"Bar\",\r\n                    fillColor: \"rgba(220,220,220,0.5)\",\r\n                    strokeColor: \"rgba(220,220,220,1)\",\r\n                    pointColor: \"rgba(220,220,220,1)\",\r\n                    pointStrokeColor: \"#fff\",\r\n                    data: [3, 2, 3, 0],\r\n                    title: \"Team #1\",\r\n                    axis: 1\r\n                },\r\n             {\r\n                    type: \"Line\",\r\n                    pointColor: \"rgba(0,0,0,1)\",\r\n                    strokeColor: \"blue\",\r\n                    pointStrokeColor: \"rgba(0,0,0,0)\",\r\n                    data: [0, 1, 2, 3],\r\n                    xPos: [3, 3, 3, 3],\r\n                    title: \"Vertical Line 3\"\r\n                },\r\n                {\r\n                    type: \"Line\",\r\n                    pointColor: \"rgba(0,0,0,1)\",\r\n                    strokeColor: \"grey\",\r\n                    pointStrokeColor: \"rgba(0,0,0,0)\",\r\n                    data: [0, 1, 2],\r\n                    xPos: [0, 0, 0, 0],\r\n                    title: \"Vertical Line 4\"\r\n                }\r\n            ]\r\n        };\r\n```\r\nTo create chart:\r\n```\r\nvar myLine = new Chart(document.getElementById(\"mycanvas\").getContext(\"2d\")).Bar(mydata,newopts);\r\n```\r\n\r\nHowever, my lines are not vertical.\r\n\r\n![incorrect](https://cloud.githubusercontent.com/assets/10071245/20675214/3461f4f2-b594-11e6-90ab-2dbb690150f2.PNG)\r\n\r\nWhat is interesting, if I change labels to numbers, lines are created correctly.\r\n\r\n```\r\nvar mydata = {\r\n            labels: [0, 1, 2, 3],\r\n...\r\n```\r\n![correct](https://cloud.githubusercontent.com/assets/10071245/20675323/88fa04d2-b594-11e6-98fb-46ac452b0cc1.PNG)\r\n\r\nThank you."}}
{"actor":{"display_login":"luna2761"}}