Skip to content

Commit

Permalink
add paning to zommable charts
Browse files Browse the repository at this point in the history
  • Loading branch information
mProjectsCode committed Oct 31, 2024
1 parent 3fe13cb commit ac136fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/src/components/svelte/genericCharts/barChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@
},
},
zoom: {
pan: {
enabled: enableZoom,
mode: 'x',
},
zoom: {
wheel: {
enabled: enableZoom,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
},
},
zoom: {
pan: {
enabled: enableZoom,
mode: 'x',
},
zoom: {
wheel: {
enabled: enableZoom,
Expand Down

0 comments on commit ac136fa

Please sign in to comment.