Skip to content

Cannot download the image #2

@lh12565

Description

@lh12565

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>

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions