I was trying to use bokeh.charts. I think it was working in older version. If I want to run an application for histograms where category on x axis and it's count on y axis which also has yes and no as hue value. And I need to customize x and y using user input (like data camp bokeh case study). How can I do?
Hi,
It sounds like you are asking for a bar chart, not a histogram? Histograms have continuous x-axes, not categorical ones. There are lots of examples of bar charts here:
https://bokeh.pydata.org/en/latest/docs/user_guide/categorical.html
Then to update things, it's always the same: update the .data values on the ColumnDataSource. There are lots of examples in the docs and examples dir of the repo.
Thanks,
Bryan
···
On Apr 4, 2018, at 21:36, Kaushik Shakkari <[email protected]> wrote:
I was trying to use bokeh.charts. I think it was working in older version. If I want to run an application for histograms where category on x axis and it's count on y axis which also has yes and no as hue value. And I need to customize x and y using user input (like data camp bokeh case study). How can I do?
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8b9734e6-d345-44af-be65-9a4285be4694%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
Hi Bryan,
Thanks for the fast reply. I have tried it but when i change the category (x or y) on app, I am this error (error handling message Message ‘PATCH-DOC’ (revision 1): ValueError (‘expected a value of type basestring, got [7, 3, 10, 1, 11, 9, 8, 5, 2, 4, 6, 0] of type list’,)
As the list gets updated, my terminal shows this error and change in app is not happening.
···
On Thursday, April 5, 2018 at 10:06:52 AM UTC+5:30, Kaushik Shakkari wrote:
I was trying to use bokeh.charts. I think it was working in older version. If I want to run an application for histograms where category on x axis and it’s count on y axis which also has yes and no as hue value. And I need to customize x and y using user input (like data camp bokeh case study). How can I do?
Hi,
It’s not really possible to speculate without seeing (preferably running) real code.
Thanks,
Bryan
···
On Apr 5, 2018, at 06:37, Kaushik Shakkari [email protected] wrote:
Hi Bryan,
Thanks for the fast reply. I have tried it but when i change the category (x or y) on app, I am this error (error handling message Message ‘PATCH-DOC’ (revision 1): ValueError (‘expected a value of type basestring, got [7, 3, 10, 1, 11, 9, 8, 5, 2, 4, 6, 0] of type list’,)
As the list gets updated, my terminal shows this error and change in app is not happening.
On Thursday, April 5, 2018 at 10:06:52 AM UTC+5:30, Kaushik Shakkari wrote:
I was trying to use bokeh.charts. I think it was working in older version. If I want to run an application for histograms where category on x axis and it’s count on y axis which also has yes and no as hue value. And I need to customize x and y using user input (like data camp bokeh case study). How can I do?
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/92e21ce7-3595-4de8-8977-41d1f18ff8c6%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.