Skip to content

Commit ac136fa

Browse files
committed
add paning to zommable charts
1 parent 3fe13cb commit ac136fa

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

website/src/components/svelte/genericCharts/barChart.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@
145145
},
146146
},
147147
zoom: {
148+
pan: {
149+
enabled: enableZoom,
150+
mode: 'x',
151+
},
148152
zoom: {
149153
wheel: {
150154
enabled: enableZoom,

website/src/components/svelte/genericCharts/stackedBarChart.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
},
7373
},
7474
zoom: {
75+
pan: {
76+
enabled: enableZoom,
77+
mode: 'x',
78+
},
7579
zoom: {
7680
wheel: {
7781
enabled: enableZoom,

0 commit comments

Comments
 (0)