{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-visualization-issues/issues/2328","repository_url":"https://api.github.com/repos/google/google-visualization-issues","labels_url":"https://api.github.com/repos/google/google-visualization-issues/issues/2328/labels{/name}","comments_url":"https://api.github.com/repos/google/google-visualization-issues/issues/2328/comments","events_url":"https://api.github.com/repos/google/google-visualization-issues/issues/2328/events","html_url":"https://github.com/google/google-visualization-issues/issues/2328","id":167704831,"number":2328,"title":"Timeline Chart Colors Option Not Working","user":{"login":"marc-dworkin","id":6335986,"avatar_url":"https://avatars.githubusercontent.com/u/6335986?v=3","gravatar_id":"","url":"https://api.github.com/users/marc-dworkin","html_url":"https://github.com/marc-dworkin","followers_url":"https://api.github.com/users/marc-dworkin/followers","following_url":"https://api.github.com/users/marc-dworkin/following{/other_user}","gists_url":"https://api.github.com/users/marc-dworkin/gists{/gist_id}","starred_url":"https://api.github.com/users/marc-dworkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marc-dworkin/subscriptions","organizations_url":"https://api.github.com/users/marc-dworkin/orgs","repos_url":"https://api.github.com/users/marc-dworkin/repos","events_url":"https://api.github.com/users/marc-dworkin/events{/privacy}","received_events_url":"https://api.github.com/users/marc-dworkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T20:33:46Z","updated_at":"2016-07-27T02:02:56Z","closed_at":null,"body":"This example is straightfoward.  Colors are not assigned as expected\r\n\r\n```\r\n function drawChart()\r\n  {\r\n    var container = document.getElementById('timeline');\r\n    var chart = new google.visualization.Timeline(container);\r\n\r\n\r\n    var dataTable = new google.visualization.DataTable();\r\n\r\n      dataTable.addColumn({ type: 'string', id: 'RowLabel' });\r\n       dataTable.addColumn({ type: 'string', id: 'BarLabel' });\r\n       dataTable.addColumn({ type: 'string', id: 'Tooltip', role: 'tooltip', 'p': {'html': true} });\r\n    dataTable.addColumn({ type: 'date', id: 'Start' });\r\n    dataTable.addColumn({ type: 'date', id: 'End' });\r\n    dataTable.addRows([\r\n  ['Row Label 1', 'red', 'red', new Date(2016, 7, 25, 18, 0, 38), new Date(2016, 7, 25, 18, 3, 3)],\r\n['Row Label 1', 'green', 'green', new Date(2016, 7, 25, 18, 0, 38), new Date(2016, 7, 25, 18, 0, 40)],\r\n['Row Label 1', 'yellow','yellow', new Date(2016, 7, 25, 18, 0, 40), new Date(2016, 7, 25, 18, 0, 44)],\r\n['Row Label 1', 'orange', 'orange', new Date(2016, 7, 25, 18, 7, 29), new Date(2016, 7, 25, 18, 7, 31)],\r\n['Row Label 1', 'white', 'white', new Date(2016, 7, 25, 18, 10, 11), new Date(2016, 7, 25, 18, 11, 36)],\r\n['Row Label 2', 'blue', 'blue', new Date(2016, 7, 25, 18, 0, 39), new Date(2016, 7, 25, 18, 14, 6)],\r\n['Row Label 2', 'purple', 'purple', new Date(2016, 7, 25, 18, 0, 41), new Date(2016, 7, 25, 18, 4, 33)],\r\n]);\r\n\r\n    var options = {\r\n    timeline: {groupByRowLabel : true },\r\n      tooltip: {isHtml: true},\r\n      colors: ['red', 'green', 'yellow', 'orange', 'white', 'blue', 'purple'],\r\n      };\r\n\r\n    chart.draw(dataTable, options);\r\n\r\n   }\r\n```"},"comment":{"url":"https://api.github.com/repos/google/google-visualization-issues/issues/comments/235460425","html_url":"https://github.com/google/google-visualization-issues/issues/2328#issuecomment-235460425","issue_url":"https://api.github.com/repos/google/google-visualization-issues/issues/2328","id":235460425,"user":{"login":"dlaliberte","id":570125,"avatar_url":"https://avatars.githubusercontent.com/u/570125?v=3","gravatar_id":"","url":"https://api.github.com/users/dlaliberte","html_url":"https://github.com/dlaliberte","followers_url":"https://api.github.com/users/dlaliberte/followers","following_url":"https://api.github.com/users/dlaliberte/following{/other_user}","gists_url":"https://api.github.com/users/dlaliberte/gists{/gist_id}","starred_url":"https://api.github.com/users/dlaliberte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlaliberte/subscriptions","organizations_url":"https://api.github.com/users/dlaliberte/orgs","repos_url":"https://api.github.com/users/dlaliberte/repos","events_url":"https://api.github.com/users/dlaliberte/events{/privacy}","received_events_url":"https://api.github.com/users/dlaliberte/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T02:02:56Z","updated_at":"2016-07-27T02:02:56Z","body":"Seems to be working almost OK in the 'current' version: https://jsfiddle.net/dlaliberte/bh5qkpzn/ Orange, yellow, and white are not right.  Can you see a pattern?"}}
{"actor":{"display_login":"dlaliberte"}}