-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add drag and zoom? #535
Comments
You can change the size of the container with CSS. This will allow the browser's zoom and scrollbar functionality to work. |
Can you please share an example of how to do this? |
Suppose your chart was contained inside a
Then you would just have to explicitly set the size with CSS like so:
Obviously you would need to adjust the actual pixel sizes to values which made sense for your project. |
This might help: https://github.com/tylingsoft/dagre-d3-renderer/blob/master/dist/demo/arrows.html#L55-L59 var zoom = d3.zoom().on("zoom", function() {
inner.attr("transform", d3.event.transform);
});
svg.call(zoom); |
Is there a solution for panning canvas in a very wide graph? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still interested in it, and it is still relevant, you can comment or remove the label to revive it. |
This issue has been been automatically closed due to a lack of activity. This is done to maintain a clean list of issues that the community is interested in developing. |
I produced a very large (long and wide) graph using mermaidAPI. How can I add drag (pan) and zoom? Use of another JS library, perhaps?
The text was updated successfully, but these errors were encountered: