Skip to content

Commit

Permalink
Increased sankey zoom (#8991)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Feb 28, 2025
1 parent 7ac9b75 commit 42755ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_src/vue/sankey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function initializeZoom() {
if (!svg) return;
zoomGroup = svg.select('.zoom-group');
zoom = d3.zoom()
.scaleExtent([1, 3]) // Max 300% zoom
.scaleExtent([1, 5]) // Max 500% zoom
.on("zoom", (event) => {
currentScale.value = event.transform.k;
isZoomed.value = currentScale.value > 1;
Expand Down

0 comments on commit 42755ac

Please sign in to comment.