mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
37 lines
704 B
JavaScript
37 lines
704 B
JavaScript
import { Bar } from 'vue-chartjs';
|
|
|
|
const fontFamily =
|
|
'-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
|
|
|
|
export default Bar.extend({
|
|
props: ['collection'],
|
|
mounted() {
|
|
this.renderChart(this.collection, {
|
|
// responsive: true,
|
|
maintainAspectRatio: false,
|
|
legend: {
|
|
labels: {
|
|
fontFamily,
|
|
},
|
|
},
|
|
scales: {
|
|
xAxes: [
|
|
{
|
|
barPercentage: 1.9,
|
|
ticks: {
|
|
fontFamily,
|
|
},
|
|
},
|
|
],
|
|
yAxes: [
|
|
{
|
|
ticks: {
|
|
fontFamily,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|
|
},
|
|
});
|