-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I used the example for visualization, but I couldn't download the image. Is there something wrong with my code?
<template>
<v-btn @click="test()">Click to plot</v-btn>
<div>
<canvas id="canvasId2" width="540" height="540"></canvas>
</div>
</template>
<script>
import addjscss from '@/utils/addjscss.ts'
const { loadjscssfile, removejscssfile } = addjscss()
export default {
methods: {
test(){
var data = { "y": {
"vars": [ "Gene1"],
"smps": [ "Smp1", "Smp2", "Smp3" ],
"data": [ [ 10, 35, 88 ] ]
}
};
// Configuration
var conf = { "graphType": "Bar" };
// Initialize object
var cX = new CanvasXpress("canvasId2", data, conf);
}
},
mounted() {
loadjscssfile("/canvasXpress.css", "css")
// this.loadjscssfile("/js/canvasXpress.min.js", "js");
loadjscssfile("/canvasXpress.min.js", "js");
},
}
</script>
Metadata
Metadata
Assignees
Labels
No labels