{"version":3,"file":"BarChart-C4aQt4jK.js","sources":["../../../app/javascript/vuejs/components/utilities/BarChart.vue"],"sourcesContent":["<!--\nYou can create your components in Vues single file components.\nHowever it is important that you do not have the <template></template> included.\nBecause Vue can't merge templates.\nAnd the template is included in the mixin.\nIf you leave the template tag in your component, it will overwrite the one which comes from the base chart and you will have a blank screen.\n -->\n\n<script>\n  import { Bar } from 'vue-chartjs'\n  export default {\n    extends: Bar,\n    data () {\n      return {\n      }\n    },\n    props: {\n      data: {\n        type: Object,\n        required: true,\n      },\n      options: {\n        type: Object,\n      },\n      plugins: {\n        type: Array\n      }\n    },\n    mounted () {\n      this.renderChart(this.data, this.options)\n      const HTML = this.$data._chart.generateLegend()\n      this.$emit('generated', HTML)\n    },\n    watch: {\n      data() {\n        this.renderChart(this.data, this.options)\n      }\n    },\n  }\n</script>\n"],"names":["__vue2_script","Bar","HTML"],"mappings":"sGAUA,MAAAA,EAAA,CACA,QAAAC,EACA,MAAA,CACA,MAAA,CACA,CACA,EACA,MAAA,CACA,KAAA,CACA,KAAA,OACA,SAAA,EACA,EACA,QAAA,CACA,KAAA,MACA,EACA,QAAA,CACA,KAAA,KACA,CACA,EACA,SAAA,CACA,KAAA,YAAA,KAAA,KAAA,KAAA,OAAA,EACA,MAAAC,EAAA,KAAA,MAAA,OAAA,eAAA,EACA,KAAA,MAAA,YAAAA,CAAA,CACA,EACA,MAAA,CACA,MAAA,CACA,KAAA,YAAA,KAAA,KAAA,KAAA,OAAA,CACA,CACA,CACA"}