0.0.5 • Published 5 years ago

bokeh-vue v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Show bokeh chart in vue

Installation

npm i bokeh-vue --save

Usage

<template>
  <div>
    <bokeh-vue :plot="plot"></bokeh-vue>
  </div>
</template>

<script>
import BokehVue from 'bokeh-vue'
export default {
  components: {
    'bokeh-vue': BokehVue
  },
  data () {
    plot: {}
  },
  mounted () {
    this.plot = {
      'bokehVersion': '1.0.2',
      'div': '["<div class="bk-root" id="74694b03-e536-4de1-b629-e5c7cc63a5fa"></div>"]',
      'script': '["(function() {↵  var fn = function() {↵    Bokeh.sa…t.addEventListener("DOMContentLoaded", fn);↵})();"]'
    }
  }
}
</script>

You must input the value of 'bokehVersion'

The type of 'div' and 'script' is array

Backend python code

script, div = components(p, wrap_script=False)
return {'div':div, 'script':script}
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago