File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/assets/js/backend/components/linechart.js
Back
import { Line } from 'vue-chartjs' export default { extends: Line, props: ['data', 'options'], data () { return { defaultOptions: { responsive: true, maintainAspectRatio: false, scales: { xAxes: [{ ticks: { stepSize: 1, min: 0, autoSkip: false } }], yAxes: [{ gridLines: { display: true }, ticks: { beginAtZero: true, stepSize: 1, min: 0, userCallback: function (label) { if (Math.floor(label) === label) { return label } } } }] } } } }, methods: { update (reRender) { if (reRender) { this.renderChart(this.data, this.options) } this.$data._chart.update() } }, mounted () { this.renderChart(this.data, this.options) } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings