Files
firefly-iii/frontend/src/components/dashboard/MainAccountChart.vue

21 lines
401 B
Vue
Raw Normal View History

2020-06-17 07:06:45 +02:00
<script>
2020-06-21 18:29:23 +02:00
import {Line} from 'vue-chartjs'
2020-06-17 07:06:45 +02:00
export default {
extends: Line,
2020-06-21 18:29:23 +02:00
props: ['options', 'chartData'],
2020-06-17 07:06:45 +02:00
2020-06-21 18:29:23 +02:00
mounted() {
2020-06-17 07:06:45 +02:00
// this.chartData is created in the mixin.
// If you want to pass options please create a local options object
this.renderChart(this.chartData, this.options)
}
}
</script>
<style scoped>
</style>