can now scroll with wheel in graphs

This commit is contained in:
2026-02-10 19:10:25 +11:00
parent 3a04b8321c
commit 8446f59740
2 changed files with 3 additions and 3 deletions

1
TODO
View File

@@ -15,4 +15,3 @@ CALC:
* still get double health insurance bills sometimes (just viewing a new date might trigger this??? or at least when I changed years) * still get double health insurance bills sometimes (just viewing a new date might trigger this??? or at least when I changed years)
UI: UI:
allow shift-scrollwheel to zoom

View File

@@ -11,6 +11,7 @@
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/mouse-wheel-zoom.js"></script>
<script src="https://code.highcharts.com/modules/annotations.js"></script> <script src="https://code.highcharts.com/modules/annotations.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script> <script src="https://code.highcharts.com/modules/accessibility.js"></script>
<script src="https://code.highcharts.com/themes/adaptive.js"></script> <script src="https://code.highcharts.com/themes/adaptive.js"></script>
@@ -358,7 +359,7 @@
// Highcharts configuration // Highcharts configuration
Highcharts.chart('graph', { Highcharts.chart('graph', {
chart: { type: 'line' }, chart: { type: 'line', zooming: { type: 'x' } },
colors: [ 'orange' ], colors: [ 'orange' ],
title: { text: 'Savings Over Time' }, title: { text: 'Savings Over Time' },
xAxis: { xAxis: {
@@ -385,7 +386,7 @@
{% if COMP %} {% if COMP %}
// Highcharts configuration // Highcharts configuration
Highcharts.chart('graph-comp', { Highcharts.chart('graph-comp', {
chart: { type: 'line' }, chart: { type: 'line', zooming: { type: 'x' } },
colors: [ colors: [
'orange', // Custom color 1 'orange', // Custom color 1
'cyan', // Custom color 2 'cyan', // Custom color 2