From e29c5899aa365e81e31a9a5f7db175169409cbc1 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 22 Dec 2023 19:56:27 +0000 Subject: [PATCH] Add zoom and pan --- template.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/template.html b/template.html index d83f15d..c91701a 100644 --- a/template.html +++ b/template.html @@ -5,6 +5,8 @@ Open bugs over time + + @@ -31,7 +33,20 @@ document.addEventListener('DOMContentLoaded', function () { data: data }] }, + options: { + plugins: { + zoom: { + pan: { + enabled: true, + }, + zoom: { + wheel: { enabled: true }, + pinch: { enabled: true }, + mode: 'xy', + } + } + }, scales: { x: { type: 'time',