Closed Larshavin closed 1 year ago
Any error in the console?
Unfortunately, I'm not a user of VueJs, but i don't see any reason for incompatibility.
What version of chartjs do you use ?
@Larshavin I am using this plugin in Vue.js. Here is how I have it setup.
<div class="metrics">
<canvas ref="canvas" width="400" height="200"></canvas>
</div>
import Chart from 'chart.js';
import ChartDatasourcePrometheusPlugin from 'chartjs-plugin-datasource-prometheus';
myChart = new Chart(canvas.value, {
. . .
}
what is the chartId
? In your example, i don't see any id on canvas
.
I don't have one
Hi, I made my webpage with Vue.js (& not familiar in chart.js) In this document, it give me just only plain javascript example. I'm trying to npm install all package and import just like a
in vue.js file, And use document's example almost same in some function
When this code applied, there is no error but just empty canvas exsisted.
How should I apply this package into vue.js properly?