{"action":"opened","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/4369","repository_url":"https://api.github.com/repos/bokeh/bokeh","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/4369/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/4369/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/4369/events","html_url":"https://github.com/bokeh/bokeh/issues/4369","id":156854559,"number":4369,"title":"Spaced hierarchical index","user":{"login":"afonit","id":1798497,"avatar_url":"https://avatars.githubusercontent.com/u/1798497?v=3","gravatar_id":"","url":"https://api.github.com/users/afonit","html_url":"https://github.com/afonit","followers_url":"https://api.github.com/users/afonit/followers","following_url":"https://api.github.com/users/afonit/following{/other_user}","gists_url":"https://api.github.com/users/afonit/gists{/gist_id}","starred_url":"https://api.github.com/users/afonit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afonit/subscriptions","organizations_url":"https://api.github.com/users/afonit/orgs","repos_url":"https://api.github.com/users/afonit/repos","events_url":"https://api.github.com/users/afonit/events{/privacy}","received_events_url":"https://api.github.com/users/afonit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-25T21:28:17Z","updated_at":"2016-05-25T21:28:17Z","closed_at":null,"body":"Currently we can have hierarchical indexes on plots, but they are slotted for each tick, see in this example:\r\n'''python\r\nimport pandas as pd\r\nimport datetime\r\nfrom bokeh.charts import Bar, output_notebook, show\r\n\r\noutput_notebook()\r\n\r\n# building up some sample data\r\ndata = {\r\n    'month': ['2016-01-01','2016-02-01', '2016-01-01'],\r\n    'work_location': ['site_a', 'site_a', 'site_b'],\r\n    'nps': [50.0, 33.3, -25.0]\r\n}\r\n\r\ndf = pd.DataFrame(data)\r\n\r\np = Bar(df, values='nps', label=['work_location', 'month'])\r\nshow(p)\r\n'''\r\nProduces the following plot:\r\n![plot_idea](https://cloud.githubusercontent.com/assets/1798497/15556808/bc7b336a-229d-11e6-92ab-cf6248e68d39.png)\r\n\r\nOn the left is the current, on the right the axis is parsed visually so it is easier/quicker to interpret and see the groups.\r\n\r\nHere is an additional example:\r\nhttp://news.infragistics.com/cfs-filesystemfile.ashx/__key/CommunityServer.Discussions.Components.Files/265/4718.Capture.PNG\r\n\r\nAgain, just floating the idea as I think it lends visual power to the graph in making the content of the axis (when it is hierarchical like this) easier to parse than the current look."}}
{"actor":{"display_login":"afonit"}}