···
On Fri, Jun 30, 2017 at 5:36 PM, david56783@gmail.com wrote:
Hello,
I have a few months experience with Bokeh but am now working on a project that requires tight integration on the javascript side with bootstap elements and a jquery dataTable. Specifically I am searching and filtering the table and would like to redraw several bokeh figures on the page afterwards. My Plots are almost all categorical plots on the xaxis and numerical on the yaxis where the factors may change IE switch from column A to a subset of A to a subset of column B values for example. Long term I would like to have call backs to the jquery datatable.
Right now I am have alot of difficulty in setting up the categorical bar/scatter plot based on the python documentation.
Could someone provide an example of categorical factors in an x-axis for BokehJS?
currently we don’t have any bokehjs’ examples showing categorical axes. However, bokehjs’ API is supposed to be a mirror of bokeh’s Python API, so e.g. this https://github.com/bokeh/bokeh/blob/master/examples/models/file/colors.py should help, just with appropriate syntax changes. E.g.
xaxis_above = CategoricalAxis(major_label_orientation=pi/4)
plot.add_layout(xaxis_above, ‘above’)
becomes
var xaxis_above = new CategoricalAxis({major_label_orientation: Math.PI/4})
plot.add_layout(xaxis_above, ‘above’)
I will add some more examples in near future (you can track progress in https://github.com/bokeh/bokeh/issues/6574).
Mateusz
David
–
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9a4d087e-dad1-47c6-850f-26c3f40d46a8%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.