Hi Sainath,
Zooming and scrolling is very simple for a label based x-axis. You just need to pass the selected data to the chart. There is no need to compute the x-axis scale, as they are labels. (Labels are considered to be like names. They are for human reading and have no meaning to the code.)
I have attached an example based on the "Zooming and Scrolling with Track Line (1) (MFC)" sample code, modified to use a label based x-axis. To try them, please put the above two files in the directory for the
"Zooming and Scrolling with Track Line (1) (MFC)" sample code, replacing the existing files there. Then you can use Visual Studio to compile and try the code.
Hope this can help.
Regards
Peter Kwan
|