I have a very basic web page that uses flot to create a canvas
based graph (similar to what SO uses for reputation graph).
In the case of a PC display, it should simply output normally, with a the width (x-axis) being 1.6 times the height.
But for iPhones, I would like it if, rather than having it overflow in "canvas" orientation, the page defaulted to landscape orientation, encouraging (or forcing) the user to turn their phone to see the chart as PC users would.
So my questions are:
1) Is there a way (using CSS, JS, or simply HTML head tags) to have the canvas rotate 90 degrees on detection of a "canvas" orientation?
2) Is there a way, in general, to rotate elements/objects, regardless of who is viewing it?
3) Is there a way to avoid the iPhone's default behavior of rotating the content when the device is rotated? Obviously I want the user to rotate the device upon seeing that it has shown up sideways, but I don't want the graph to flip over and STILL be sideways when they turn the phone, teasing them to continue to flip the phone and never getting the graph to hold still.
Thanks!