[Enhancement] Update vue-chartjs to fix production build (#182)

This commit is contained in:
Pranav Raj S 2019-10-27 10:24:19 +05:30 committed by GitHub
parent f869598cb4
commit 50fc06681c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 444 deletions

View file

@ -3,11 +3,12 @@ import { Bar } from 'vue-chartjs';
const fontFamily =
'-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
export default Bar.extend({
export default {
extends: Bar,
props: ['collection'],
mounted() {
this.renderChart(this.collection, {
// responsive: true,
responsive: true,
maintainAspectRatio: false,
legend: {
labels: {
@ -21,6 +22,9 @@ export default Bar.extend({
ticks: {
fontFamily,
},
gridLines: {
display: false,
},
},
],
yAxes: [
@ -28,9 +32,12 @@ export default Bar.extend({
ticks: {
fontFamily,
},
gridLines: {
display: false,
},
},
],
},
});
},
});
};