can now scroll with wheel in graphs
This commit is contained in:
1
TODO
1
TODO
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user