Initial import
This commit is contained in:
28
fo/one-dashboard-que/components/Antrian.js
Normal file
28
fo/one-dashboard-que/components/Antrian.js
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
export default {
|
||||
extends: VueChartJs.Bar,
|
||||
mixins: [VueChartJs.mixins.reactiveProp],
|
||||
mounted () {
|
||||
this.renderChart(this.chartData,
|
||||
{
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
scales: {
|
||||
yAxes : [{
|
||||
ticks: {
|
||||
beginAtZero : true
|
||||
}
|
||||
}]
|
||||
},
|
||||
events: ['click','mousemove','touchstart'],
|
||||
tooltips: {
|
||||
mode:'index',
|
||||
},
|
||||
title : {
|
||||
display: true,
|
||||
text: ['Antrian']
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
27
fo/one-dashboard-que/components/Line.js
Normal file
27
fo/one-dashboard-que/components/Line.js
Normal file
@@ -0,0 +1,27 @@
|
||||
export default {
|
||||
extends: VueChartJs.Line,
|
||||
mixins: [VueChartJs.mixins.reactiveProp],
|
||||
mounted () {
|
||||
this.renderChart(this.chartData,
|
||||
{
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
scales: {
|
||||
yAxes : [{
|
||||
ticks: {
|
||||
beginAtZero : true
|
||||
}
|
||||
}]
|
||||
},
|
||||
events: ['click','mousemove','touchstart'],
|
||||
tooltips: {
|
||||
mode:'index',
|
||||
},
|
||||
title : {
|
||||
display: true,
|
||||
text: ['Antrian Status']
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
13
fo/one-dashboard-que/components/SaatIni.js
Normal file
13
fo/one-dashboard-que/components/SaatIni.js
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
const reactiveProp = VueChartJs.mixins.reactiveProp
|
||||
export default {
|
||||
mixins: [reactiveProp],
|
||||
props: ['options'],
|
||||
extends: VueChartJs.Pie,
|
||||
mounted () {
|
||||
this.renderChart(
|
||||
this.chartData, this.options
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user