connecting api data to socket and setting up chartjs to use the data

This commit is contained in:
Beverly Nguyen
2024-05-30 21:17:10 -07:00
parent d5934855a0
commit 01321aeddc
3 changed files with 101 additions and 40 deletions

View File

@@ -23,8 +23,9 @@
</h2>
<h1>Job Dashboard</h1>
<button id="fetchJobsButton">Fetch Jobs</button>
<button id="sevenDaysButton">7 Days</button>
<canvas id="myChart" ></canvas>
<div id="chart" data-service-id="{{ service_id }}"></div>
{{ ajax_block(partials, updates_url, 'inbox') }}
{{ ajax_block(partials, updates_url, 'totals') }}