sudidela Posted October 24, 2008 Report Share Posted October 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.