|
How to zoom y-axis by mouse selection area |
Posted by hyo on Feb-02-2021 10:19 |
|
Hi.
I am testing the program(C++) using an example "realtimezoomscroll".
In the example code, I only modified the code to zoom x&y-axis as below.
--------------------------------------------------------------
m_zoomDirection = Chart::DirectionHorizontalVertical;
m_scrollDirection = Chart::DirectionHorizontalVertical;
--------------------------------------------------------------
When dragging a mouse, the y-axis was zoomed according to the data rather than the mouse selection area.(see attached picture)
-. (in picture) I want the y-axis to be 200~250.
How to zoom y-axis by mouse selection area(not according to the data)
(I am sorry for my poor English.)
|
Re: How to zoom y-axis by mouse selection area |
Posted by hyo on Feb-02-2021 10:54 |
|
I solved the problem by adding the following code.
----------------------------------------------
viewer->syncLinearAxisWithViewPort("x", c->xAxis());
viewer->syncLinearAxisWithViewPort("y", c->yAxis());
---------------------------------------------- |
|