Title: Timeline: When only having id, Start, End, if added a column with special role, this column will be ignored · Issue #44 · google/google-visualization-python · GitHub
Open Graph Title: Timeline: When only having id, Start, End, if added a column with special role, this column will be ignored · Issue #44 · google/google-visualization-python
X Title: Timeline: When only having id, Start, End, if added a column with special role, this column will be ignored · Issue #44 · google/google-visualization-python
Description: My use case is in Timeline chart. For example, now there are only 3 columns in the dataTable, which is id, Start, and End, and I want to format the color of each data row, so I added a column, specifying {'role': 'style'}, the conversion...
Open Graph Description: My use case is in Timeline chart. For example, now there are only 3 columns in the dataTable, which is id, Start, and End, and I want to format the color of each data row, so I added a column, spec...
X Description: My use case is in Timeline chart. For example, now there are only 3 columns in the dataTable, which is id, Start, and End, and I want to format the color of each data row, so I added a column, spec...
Opengraph URL: https://github.com/google/google-visualization-python/issues/44
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Timeline: When only having id, Start, End, if added a column with special role, this column will be ignored","articleBody":"My use case is in [Timeline chart](https://developers.google.com/chart/interactive/docs/gallery/timeline#overview). \r\nFor example, now there are only 3 columns in the dataTable, which is id, Start, and End, and I want to format the color of each data row, so I added a column, specifying {'role': 'style'}, the conversion from python code to js will be successful, but this column will be ignored.\r\nI will have to add another data column, and then this 'style' column will be recognized. \r\nI find it a little confusing, because in the [documentation](https://developers.google.com/chart/interactive/docs/gallery/timeline#data-format), only three columns are mandatory.\r\n\r\nExample bug code:\r\n` description = {\"id\": (\"string\", \"id\"),\r\n \"style\": (\"string\", \"style\", {'role': 'style'}),\r\n \"Start\": (\"datetime\", \"Start\"),\r\n \"End\": (\"datetime\", \"End\")}`\r\n `data = [{\"id\": \"001\", \"style\": 'opacity: 0.5', \"Start\": datetime(2018, 2, 2, 8, 0, 0), \"End\": datetime(2018, 2, 2, 8, 30, 0)},\r\n {\"id\": \"001\", \"style\": 'color: #0000cf', \"Start\": datetime(2018, 2, 2, 8, 30, 0), \"End\": datetime(2018, 2, 2, 9, 30, 0)},\r\n {\"id\": \"001\", \"style\": 'color: #603913', \"Start\": datetime(2018, 2, 2, 10, 30, 0), \"End\": datetime(2018, 2, 2, 11, 30, 0)},\r\n {\"id\": \"002\", \"style\": 'color: #cbb69d', \"Start\": datetime(2018, 2, 2, 9, 0, 0), \"End\": datetime(2018, 2, 2, 9, 30, 0)},\r\n {\"id\": \"002\", \"style\": 'color: #603913', \"Start\": datetime(2018, 2, 2, 11, 30, 0), \"End\": datetime(2018, 2, 2, 12, 30, 0)}]\r\n`\r\nThis will not work, I will have to add another column in the dataTable.\r\n`description = {\"id\": (\"string\", \"id\"),\r\n \"State\": (\"string\", \"State\"),\r\n \"style\": (\"string\", \"style\", {'role': 'style'}),\r\n \"Start\": (\"datetime\", \"Start\"),\r\n \"End\": (\"datetime\", \"End\")}`\r\n\r\n`data = [{\"id\": \"001\", \"State\": \"Completed\", \"style\": 'opacity: 0.5', \"Start\": datetime(2018, 2, 2, 8, 0, 0), \"End\": datetime(2018, 2, 2, 8, 30, 0)},\r\n {\"id\": \"001\", \"State\": \"Completed\", \"style\": 'color: #0000cf', \"Start\": datetime(2018, 2, 2, 8, 30, 0), \"End\": datetime(2018, 2, 2, 9, 30, 0)},\r\n {\"id\": \"001\", \"State\": \"Incompleted\", \"style\": 'color: #603913', \"Start\": datetime(2018, 2, 2, 10, 30, 0), \"End\": datetime(2018, 2, 2, 11, 30, 0)},\r\n {\"id\": \"002\", \"State\": \"Completed\", \"style\": 'color: #cbb69d', \"Start\": datetime(2018, 2, 2, 9, 0, 0), \"End\": datetime(2018, 2, 2, 9, 30, 0)},\r\n {\"id\": \"002\", \"State\": \"Incompleted\", \"style\": 'color: #603913', \"Start\": datetime(2018, 2, 2, 11, 30, 0), \"End\": datetime(2018, 2, 2, 12, 30, 0)}]`","author":{"url":"https://github.com/winnieshen96","@type":"Person","name":"winnieshen96"},"datePublished":"2020-07-25T15:50:22Z","url":"https://github.com/google/google-visualization-python/issues/44"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9d1c74bc-1fc2-b2b9-de55-919c9f026d4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADB0:311640:17AAC8D:1E164C3:6B013E93 |
| html-safe-nonce | 91dfaa3333f164977c890a3eaac297a4589a7893052a5355752ebdf4e84bf424 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREIwOjMxMTY0MDoxN0FBQzhEOjFFMTY0QzM6NkIwMTNFOTMiLCJ2aXNpdG9yX2lkIjoiNTQ1NDUyODk3NjQ2MDUyOTI5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 046fe2c0bfebd9593fcb605255765c8c49f0e5becfe387008038dd5eb3fcf7cf |
| hovercard-subject-tag | issue:665608017 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/google-visualization-python/44/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5948cb1a433511bd12d5ebb6f4d4fa415cf5aad6ab3773e28f220ebad08439cc/google/google-visualization-python/issues/44 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5948cb1a433511bd12d5ebb6f4d4fa415cf5aad6ab3773e28f220ebad08439cc/google/google-visualization-python/issues/44 |
| og:image:alt | My use case is in Timeline chart. For example, now there are only 3 columns in the dataTable, which is id, Start, and End, and I want to format the color of each data row, so I added a column, spec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | winnieshen96 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-visualization-python git https://github.com/google/google-visualization-python.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35116715 |
| octolytics-dimension-repository_nwo | google/google-visualization-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35116715 |
| octolytics-dimension-repository_network_root_nwo | google/google-visualization-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width