New HTTP endpoints: /header and /datasets

This commit is contained in:
Ollo
2021-12-16 20:40:44 +01:00
parent 2b930a6902
commit 5955ca1a5c
2 changed files with 47 additions and 3 deletions

View File

@@ -47,7 +47,7 @@
// Test chart
const ctx = document.getElementById('myChart');
const myChart = new Chart(ctx, {
type: 'bar',
type: 'line',
data: {
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
datasets: [{
@@ -127,6 +127,6 @@
</tr>
</tbody>
</table>
<canvas id="myChart" width="400" height="400"></canvas>
<canvas id="myChart" width="100%" height="400"></canvas>
</body>
</html>