User Interaction?
User Interaction?
I have purchased the documentation, but couldn't find any mention of any facilities for user interaction with the plot such as panning, and zooming. Am I missing something?
Re: User Interaction?
Hi Craig,
There are still some features to be documented, and zooming is one of them. You'll find some references in the documentation for the ChartPanel class, but it will need a complete chapter to itself. The code is also due for a review, which I will do in conjunction with the documentation.
In the meantime, feel free to ask any questions here and I'll do my best to answer them. I didn't write all the zooming code, but I am reasonably familiar with it.
Regards,
DG.
P.S. There are no options on the pop-up menu for panning yet. This needs to be added.
There are still some features to be documented, and zooming is one of them. You'll find some references in the documentation for the ChartPanel class, but it will need a complete chapter to itself. The code is also due for a review, which I will do in conjunction with the documentation.
In the meantime, feel free to ask any questions here and I'll do my best to answer them. I didn't write all the zooming code, but I am reasonably familiar with it.
Regards,
DG.
P.S. There are no options on the pop-up menu for panning yet. This needs to be added.
Re: User Interaction?
Thanks, I found the references to zooming in ChartPanel. I just wanted to make sure I understood what is available before I lauch into a major effort. If I zoom in on the display there is then no way to change the location of the viewport?
Re: User Interaction?
The ChartPanel actually zooms around the anchor point, which is updated with each click on the chart. So you have *some* control over the viewport (if I'm understanding you correctly) but there still needs to be an option for panning left/right/up/down. It needs work...
Regards,
DG.
Regards,
DG.
Re: User Interaction?
I should add that panning isn't going to be difficult to add, I plan to just add some extra menu options on the pop-up menu. These will simply adjust the lower and upper bounds on the axes and redraw the chart.
Another option that might take more effort to get right is allowing the user to click and drag the chart to adjust the viewport. I think that would be nice as well...
Regards,
DG.
Another option that might take more effort to get right is allowing the user to click and drag the chart to adjust the viewport. I think that would be nice as well...
Regards,
DG.