JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://cdn.pydata.org/bokeh-0.6.0.min.css">
<script src="http://cdn.pydata.org/bokeh-0.6.0.min.js"></script>
<div class="mydivcontainer"></div>
CSS
.bk-logo{
display:none !important;
}
JavaScript
plot = Bokeh.Plotting.make_plot([{type:'line'},{type:'line'}], [{x:[1,2],y:[4,5]},{x:[1,4],y:[2,5]}], {xaxes:false,yaxes:false})
below = plot.get('below');
console.log(below)
Collections = Bokeh.Collections;
xaxis = Collections('LinearAxis').create({
axis_label: 'custom x label',
xgrid:true,
plot: plot
});
below = plot.get('below');
console.log('below:')
console.log(below)
console.log('/below')
below.push(xaxis);
plot.set('below', below);
yaxis = Collections('LinearAxis').create({
axis_label: 'custom y label',
plot: plot,
majorgrid: true
});
left = plot.get('left');
left.push(yaxis);
plot.set('left', left);
plot.add_renderers([xaxis, yaxis]);
Bokeh.Plotting.show(
plot
,'.mydivcontainer');