diff --git a/src/examples/App.vue b/src/examples/App.vue
index 3882ffa..57fb517 100644
--- a/src/examples/App.vue
+++ b/src/examples/App.vue
@@ -4,6 +4,8 @@
Barchart with reactive mixing for live data
+ Barchart with reactive mixing for live data as props
+
Linechart
Doughnutchart
@@ -41,6 +43,31 @@
BubbleExample,
ReactiveExample,
ReactivePropExample
+ },
+ data () {
+ return {
+ dataPoints: null
+ }
+ },
+ mounted () {
+ this.fillData()
+ },
+ methods: {
+ getRandomInt () {
+ return Math.floor(Math.random() * (50 - 5 + 1)) + 5
+ },
+ fillData () {
+ this.dataPoints = {
+ labels: ['January' + this.getRandomInt(), 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
+ datasets: [
+ {
+ label: 'Data One',
+ backgroundColor: '#f87979',
+ data: [this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt(), this.getRandomInt()]
+ }
+ ]
+ }
+ }
}
}