Jump to content
Software FX Community

Regd Custom zoom


sudidela

Recommended Posts

Hi, 

As the default zoom provided by the ChartFx doesn't zoom exactly from the location where the left mouse button is clicked to the location where the mouse button is released, we would like to implement the custom zoom in our application.

Here are the steps we follow for the implementation of Custom zoom:

1)Capture the mouse down event and store the Point(X,Y);

2) Capture the mouse up event and store the Point(X,Y);

3)We will create a rectangle with the above 2 points and use this rectangle for ZoomToWindow(int X1,int Y1, int X2, int Y2) method of chart.

But while trying to zoom itself , chartfx will take the four sides of the chart area as the selection for zoom.

How can we override this selection area behaviour of ChartFX while zoom.

i.e We want selection area (Rectangle with dashes) display should be exactly from the location where the left mouse button is clicked to the location where the mouse button is released......

Thanks

Sudidela

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...