Zoom and drag settings in SVG area

Asked

Viewed 82 times

1

I’m trying to make a system creates a graph of a mathematical function, and I’m developing it into svg. But I’m encountering some difficulties, the first of which is the lack of automation, because as we know, one of these graphs is infinite, and I can’t imagine a way to accomplish this feat. I wanted something just like what happens on example from Google. In it we can notice that something we drag or zoom in, the numerical values fit. In my case I’m doing the numbers manually. If anyone has any tips, please let me know.

My example is here

Summary of what I am needing, that when zooming or dragging the numbers fit and that the line thicknesses remain the same, but in relation to the "infinity" present in the graphic, if it cannot be done can be placed a kind of limitation.

  • Did you find a solution? Poste as an answer to help other people.

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.