zoomInBoth and zoomOutBoth functions

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yannJFreeChart
Posts: 13
Joined: Tue May 15, 2012 2:17 pm
antibot: No, of course not.

zoomInBoth and zoomOutBoth functions

Post by yannJFreeChart » Fri Sep 21, 2012 2:27 pm

Hello,

I created a JFrechart graph and I would likte to zoom in or out when I use the mouse wheel.
For that I used a MouseWheel listener and I used the code that I find on this webpage : viewtopic.php?f=10&t=22919

Whatever are the values of the parameters of the functions "zoomInBoth" and "zoomOutBoth", the center of the zoom is the center of the window and not the values that I choose.

Do you know why ?

Thank you for your help.
Have a good day.

Locked