开发者

jqplot zoom - happens only if zoomed till the borders

I am facing an issue with zooming u开发者_如何学运维sing jqPlots.

I have a graph with multiple y-axes. I have the following lines of code for performing the zoom:

cursor: {
            showVerticalLine: true,
            //showTooltip: true,
            followMouse: true,
            showTooltipDataPosition: true,
            tooltipFormatString: '%s x:%s, y:%s',
            zoom: true,
            constrainOutsideZoom: false,
            clickReset: true
        }

I am able to zoom with the above. However, the zoom happens only when I drag the zoom area to one of the borders. If I try to zoom somewhere within the canvas, it does not zoom.

Can someone tell me where I could be going wrong?

Thanks, S.


I actually have the same problem. In fact, the problem is that when you zoom inside the canvas the browser considers the click inside the canvas and execute the function clickReset. When your mouse finish outside the canvas it consider the click outside and doesn't execute the function. I tried on IE9 and it works because it doesn't consider the click during the zoom.

I think that this is a bug in the Jqplot library.

I searched for many hours and I didn't solve the problem. I hope that someone has a solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜