{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/5413","repository_url":"https://api.github.com/repos/bokeh/bokeh","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/5413/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/5413/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/5413/events","html_url":"https://github.com/bokeh/bokeh/issues/5413","id":185645631,"number":5413,"title":"Can't use categorical axis with figure using rects","user":{"login":"will-emmerson","id":2007875,"avatar_url":"https://avatars.githubusercontent.com/u/2007875?v=3","gravatar_id":"","url":"https://api.github.com/users/will-emmerson","html_url":"https://github.com/will-emmerson","followers_url":"https://api.github.com/users/will-emmerson/followers","following_url":"https://api.github.com/users/will-emmerson/following{/other_user}","gists_url":"https://api.github.com/users/will-emmerson/gists{/gist_id}","starred_url":"https://api.github.com/users/will-emmerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-emmerson/subscriptions","organizations_url":"https://api.github.com/users/will-emmerson/orgs","repos_url":"https://api.github.com/users/will-emmerson/repos","events_url":"https://api.github.com/users/will-emmerson/events{/privacy}","received_events_url":"https://api.github.com/users/will-emmerson/received_events","type":"User","site_admin":false},"labels":[{"id":123811465,"url":"https://api.github.com/repos/bokeh/bokeh/labels/reso:%20completed","name":"reso: completed","color":"345065","default":false},{"id":165234083,"url":"https://api.github.com/repos/bokeh/bokeh/labels/tag:%20component:%20bokehjs","name":"tag: component: bokehjs","color":"D0CBB8","default":false},{"id":2031795,"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20bug","name":"type: bug","color":"C02942","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/28","html_url":"https://github.com/bokeh/bokeh/milestones/0.12.4","labels_url":"https://api.github.com/repos/bokeh/bokeh/milestones/28/labels","id":2020565,"number":28,"title":"0.12.4","description":"","creator":{"login":"mattpap","id":27475,"avatar_url":"https://avatars.githubusercontent.com/u/27475?v=3","gravatar_id":"","url":"https://api.github.com/users/mattpap","html_url":"https://github.com/mattpap","followers_url":"https://api.github.com/users/mattpap/followers","following_url":"https://api.github.com/users/mattpap/following{/other_user}","gists_url":"https://api.github.com/users/mattpap/gists{/gist_id}","starred_url":"https://api.github.com/users/mattpap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattpap/subscriptions","organizations_url":"https://api.github.com/users/mattpap/orgs","repos_url":"https://api.github.com/users/mattpap/repos","events_url":"https://api.github.com/users/mattpap/events{/privacy}","received_events_url":"https://api.github.com/users/mattpap/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":31,"state":"open","created_at":"2016-09-21T22:21:44Z","updated_at":"2016-11-02T13:36:51Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-10-27T11:45:25Z","updated_at":"2016-11-02T13:37:06Z","closed_at":"2016-11-02T13:36:51Z","body":"I have the following code to draw a heatmap, one row for each parameter:\n\n```\nparams = ['end_brick', 'comms']\ndate_range = [df['date'].min(), df['date'].max()]\nsource = ColumnDataSource(df)\n\np = figure(\n    x_axis_type=\"datetime\", x_range=date_range, y_range=params,\n    tools='xpan, xwheel_zoom, reset, save, resize, hover', width=800, height=300,\n)\n\nfor i, par in enumerate(params):\n    p.quad(left='start', right='end', bottom=i, top=i + 1,\n           color={'field': par, 'transform': cmaps[par]}, source=source)\n```\n\nThe data looks like this:\n\n```\n        date  end_brick    comms  period               start                    end                          \n0 2016-10-26       95.6  99.3333       1 2016-10-26 00:00:00  0 2016-10-26 08:00:00                            \n1 2016-10-26       75.0  98.8889       3 2016-10-26 08:00:00  1 2016-10-26 16:00:00                            \n2 2016-10-26       58.7  96.6667       5 2016-10-26 16:00:00  2 2016-10-27 00:00:00                            \n3 2016-10-27       80.1  98.3333       1 2016-10-27 00:00:00  3 2016-10-27 08:00:00                                             \n```\n\nIt works but as soon I go to zoom in or out, it disappears and the console error is:\n\n```\nUncaught Error: Number property 'start' given invalid value: end_brick(…)\n```\n\nThe graph works fine when I use y_range=(0, len(params)) but then I lose labels.\n\nThe same bug happens with other charts e.g. http://bokeh.pydata.org/en/latest/docs/gallery/boxplot_chart.html\n\nIt also happens with zoom_in and zoom_out tools.\n"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/257865824","html_url":"https://github.com/bokeh/bokeh/issues/5413#issuecomment-257865824","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/5413","id":257865824,"user":{"login":"bryevdv","id":1078448,"avatar_url":"https://avatars.githubusercontent.com/u/1078448?v=3","gravatar_id":"","url":"https://api.github.com/users/bryevdv","html_url":"https://github.com/bryevdv","followers_url":"https://api.github.com/users/bryevdv/followers","following_url":"https://api.github.com/users/bryevdv/following{/other_user}","gists_url":"https://api.github.com/users/bryevdv/gists{/gist_id}","starred_url":"https://api.github.com/users/bryevdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryevdv/subscriptions","organizations_url":"https://api.github.com/users/bryevdv/orgs","repos_url":"https://api.github.com/users/bryevdv/repos","events_url":"https://api.github.com/users/bryevdv/events{/privacy}","received_events_url":"https://api.github.com/users/bryevdv/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T13:37:06Z","updated_at":"2016-11-02T13:37:06Z","body":"Thanks everyone!"}}
{"actor":{"display_login":"bryevdv"}}