vue-bokeh

A wrapper around bokehjs embedded

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-bokeh
0.2.06 years ago6 years agoMinified + gzip package size for vue-bokeh in KB

Readme

Simple wrapper for embedding Bokehplot in a vue-component.

Installation

npm i vue-bokeh --save-dev Include: ```html ``` Might be easier to just copy the code from BokehPlot.vue. Its very small and then you will have one less dependency.

Usage

```javascript ``` ```python from flask import Flask, jsonify from flaskcors import crossorigin from bokeh.plotting import figure from bokeh.embed import components app = Flask(name) @app.route("/get-plot") @crossorigin() def getplot():
plot = figure(plot_height=250, responsive = True)
plot.circle([1, 2], [3, 4])
script, div = components(plot, wrap_script=False)
return jsonify({'div': div, 'script': script})
app.run(debug=True) ```