{"action":"created","issue":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/131","labels_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/131/comments","events_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/131/events","html_url":"https://github.com/jtblin/angular-chart.js/issues/131","id":88716616,"number":131,"title":"Getting fill-colors to the bar chart...","user":{"login":"anthraxn8b","id":7797912,"avatar_url":"https://avatars.githubusercontent.com/u/7797912?v=3","gravatar_id":"","url":"https://api.github.com/users/anthraxn8b","html_url":"https://github.com/anthraxn8b","followers_url":"https://api.github.com/users/anthraxn8b/followers","following_url":"https://api.github.com/users/anthraxn8b/following{/other_user}","gists_url":"https://api.github.com/users/anthraxn8b/gists{/gist_id}","starred_url":"https://api.github.com/users/anthraxn8b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthraxn8b/subscriptions","organizations_url":"https://api.github.com/users/anthraxn8b/orgs","repos_url":"https://api.github.com/users/anthraxn8b/repos","events_url":"https://api.github.com/users/anthraxn8b/events{/privacy}","received_events_url":"https://api.github.com/users/anthraxn8b/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jtblin/angular-chart.js/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-16T12:44:19Z","updated_at":"2015-06-18T13:24:37Z","closed_at":null,"body":"Hi!\r\nI am new to chart.js and especially angular-chart.js.\r\nI am trying to do the following:\r\n\r\nHTML:\r\n```html\r\n<canvas\r\n   id=\"bar\"\r\n   class=\"chart chart-bar\"\r\n   data=\"charts.bar.data\"\r\n   labels=\"charts.bar.labels\"\r\n   colours=\"charts.bar.colours\"\r\n   options=\"charts.bar.options\"\r\n   width=\"100\"\r\n   height=\"50\"\r\n></canvas>\r\n```\r\n```javascript\r\n$scope.charts.bar = {\r\n   'labels' : [-6, -5, -4, -3, -2, -1, 0],\r\n   'data' : [[65, 59, 80, 81, 56, 55, 40]],\r\n   'colours' : ['#FFFFFF', '#FFFFFF'],\r\n   'options' : {\r\n      'showScale' : false,\r\n      'showTooltips' : false,\r\n      'responsive' : false,\r\n      'maintainAspectRatio' : false,\r\n      'pointDot' : false,\r\n      'bezierCurve' : true,\r\n      'datasetFill' : false,\r\n      'animation' : false,\r\n\t\t\t\t\r\n      'barShowStroke' : false,\r\n      'barStrokeWidth' : 2,\r\n      'barValueSpacing' : 1,\r\n      'barDatasetSpacing' : 1,\r\n\t\t\t\t\r\n      'fillColor' : 'rgba(220,220,220,0.9)'\r\n   }\r\n};\r\n```\r\nThe line `'fillColor' : 'rgba(220,220,220,0.9)'` does not work.\r\n\r\nIn the chart.js documentation i saw another datastructure:\r\n```javascript\r\nvar data = {\r\n    labels: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\"],\r\n    datasets: [\r\n        {\r\n            label: \"My First dataset\",\r\n            fillColor: \"rgba(220,220,220,0.5)\",\r\n            strokeColor: \"rgba(220,220,220,0.8)\",\r\n            highlightFill: \"rgba(220,220,220,0.75)\",\r\n            highlightStroke: \"rgba(220,220,220,1)\",\r\n            data: [65, 59, 80, 81, 56, 55, 40]\r\n        },\r\n        {\r\n            label: \"My Second dataset\",\r\n            fillColor: \"rgba(151,187,205,0.5)\",\r\n            strokeColor: \"rgba(151,187,205,0.8)\",\r\n            highlightFill: \"rgba(151,187,205,0.75)\",\r\n            highlightStroke: \"rgba(151,187,205,1)\",\r\n            data: [28, 48, 40, 19, 86, 27, 90]\r\n        }\r\n    ]\r\n};\r\n```\r\nThis also does not seem to work.\r\n\r\nAny Ideas?"},"comment":{"url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/comments/113154602","html_url":"https://github.com/jtblin/angular-chart.js/issues/131#issuecomment-113154602","issue_url":"https://api.github.com/repos/jtblin/angular-chart.js/issues/131","id":113154602,"user":{"login":"anthraxn8b","id":7797912,"avatar_url":"https://avatars.githubusercontent.com/u/7797912?v=3","gravatar_id":"","url":"https://api.github.com/users/anthraxn8b","html_url":"https://github.com/anthraxn8b","followers_url":"https://api.github.com/users/anthraxn8b/followers","following_url":"https://api.github.com/users/anthraxn8b/following{/other_user}","gists_url":"https://api.github.com/users/anthraxn8b/gists{/gist_id}","starred_url":"https://api.github.com/users/anthraxn8b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthraxn8b/subscriptions","organizations_url":"https://api.github.com/users/anthraxn8b/orgs","repos_url":"https://api.github.com/users/anthraxn8b/repos","events_url":"https://api.github.com/users/anthraxn8b/events{/privacy}","received_events_url":"https://api.github.com/users/anthraxn8b/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T13:24:37Z","updated_at":"2015-06-18T13:24:37Z","body":"This seems to work! THX!\r\n\r\nJust one question left: What about the code from the documentation? Can I define datasets and use that approach?"}}