Vue.component("reactive-chart", { props: ["chart"], template: '
', mounted() { Plotly.newPlot(this.$refs[this.chart.uuid], this.chart.traces, this.chart.layout, {responsive: true, showSendToCloud: true, displaylogo: false} ); }, watch: { chart: { handler: function() { Plotly.react( this.$refs[this.chart.uuid], this.chart.traces, this.chart.layout ); }, deep: true } } }); Vue.component('input-with-units',{ // data: function() {return {value: 303.0}}, watch: { value: { handler: function () { this.$emit('newdata',this.value); } }, deep: true }, props: ['title', 'units', 'value'], template: `

{{ title }}

{{ units }}

` })