This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
<script>
|
||||
import { Line } from "vue-chartjs";
|
||||
|
||||
/*
|
||||
Bar,
|
||||
HorizontalBar,
|
||||
Doughnut,
|
||||
Line,
|
||||
Pie,
|
||||
PolarArea,
|
||||
Radar,
|
||||
Bubble,
|
||||
Scatter
|
||||
*/
|
||||
//https://vue-chartjs.org/guide/
|
||||
//https://www.chartjs.org/docs/latest/
|
||||
export default {
|
||||
extends: Line,
|
||||
props: {
|
||||
@@ -16,8 +28,9 @@ export default {
|
||||
watch: {
|
||||
chartData() {
|
||||
//these do nothing
|
||||
// this.$data._chart.update();
|
||||
// this.$data._chart.renderChart();
|
||||
//this.$data._chart.update();
|
||||
//this.$data._chart.renderChart();
|
||||
|
||||
//this redraws the chart
|
||||
this.renderChart(this.chartData, this.options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user