I want to create a [jqPlot](http://www.jqplot.com/) line chart which has the ability to change orientation between vertical and horizontal orientation. I was able to achieve this using CSS rules, by rotating the div element containing the chart.

My work up to now: <http://jsfiddle.net/GayashanNA/A4V4y/14/>

But the problem is I also want to track the mouse-pointer and mouse clicks on points on chart after the orientation is flipped because i want to annotate those points. I am unable to do this when the chart is in vertical orientation. Can anyone suggest a method to do this? Or am i approaching the problem in a wrong way?

*(Note: I am able to do this in horizontal orientation, you can observe it if you try to click on a point on the above chart.)*

Thanks and help is much appreciated.