I have arbitrary data points I want to draw on an HTML5 canvas. I would like to zoom the canvas context to fit the data points. How can I adjust the canvas scale and translation to fit a specific bounding box?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I have arbitrary data points I want to draw on an HTML5 canvas. I would like to zoom the canvas context to fit the data points. How can I adjust the canvas scale and translation to fit a specific bounding box?