Currently, I am facing an issue with loading a single axis line chart on my Dashboard.vue. The functionality involves users selecting a 'year' and a 'loan_type' from dropdown menus, after which the chart should display a 12-month record of 'annual_payment' and 'scheduled_payment' as linear lines.
Dashboard.vue
<div class="card-header bg-white p-2">
<div class="row justify-content-md-between">
...
</div>
</div>
<div class="card-body">
...
</div>
.
.
<script>
export default {
...
}
</script>
AjaxDataController.php
.
.
public function annual_payment(Request $request) {
...
}
.
.
If anyone could provide insight on where my mistake lies and how to correct it because the chart is not loading any data at the moment, it would be greatly appreciated.