ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Regarding Dual X & Dual Y axis
Posted by Sai on Dec-07-2012 20:36
What are the prerequisite for drawing dual X & dual Y axis chart?
I have two set of data for series one(X1/Y1) & for series two(X2/Y2)
1. In series 1 I have 10 points to plot and in series 2 I have to plot 100 points.
2. Series 1 has time period 2.00 am to 5.00 am and series 2 has 1.00 am to 17.00 pm
3. Series 1 and series 2 has no relationship

For above cases can I draw Dual X & Dual Y axis XY chart with zoom functionality?

Please revert back to my query.

Regards,
Sai

  Re: Regarding Dual X & Dual Y axis
Posted by Sai on Dec-07-2012 21:19
Just extension to previous mail. I am writing application in MFC. If you send sample code in MFC then it would be favor for me.

Regards,
Sai

  Re: Regarding Dual X & Dual Y axis
Posted by Peter Kwan on Dec-08-2012 07:17
Attachments:
Hi Sai,

Yes. You can draw an XYChart with dual x-axis and dual y-axis, and with zooming and scrolling.

I have suggested the method mentioned in the following thread:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1353588333#N1353616820

I have just applied the above method to the "Simple Zooming and Scrolling (MFC)" sample code, modified to use two completely independent series, with two x axes and two y-axes. Please refer to the attached files. (To try them, you may copy them to the original "Simple Zooming and Scrolling (MFC)" sample code to replace the original files there.)

Hope this can help.

Regards
Peter Kwan
simplezoomscrollDlg.cpp
simplezoomscrollDlg.cpp

12.78 Kb
simplezoomscrollDlg.h
simplezoomscrollDlg.h

1.70 Kb

  Re: Regarding Dual X & Dual Y axis
Posted by Sai on Dec-10-2012 21:38
Hi Peter,

Thanks a lot for your help.
The way you suggested I did and it works. But I have one question is there need to set relationship between two time stamp?
Because of this relationship I am modifying data for e.g. let say one client monitoring two servers. Server1(X1/Y1) sends 500 bytes at 2.00 am & Server2(X2/Y2) sends 600 bytes at 2.15 am. but due to offset factor & scale factor in chart it shows Server2 receives 600 bytes at 2.09 am.
So how do I avoid it without calculating scaling & offset factor.

Regards,
Sai

  Re: Regarding Dual X & Dual Y axis
Posted by Peter Kwan on Dec-11-2012 03:30
Hi Sai,

If  Server1(X1/Y1) sends 500 bytes at 2.00 am & Server2(X2/Y2) sends 600 bytes at 2.15 am, then the chart should show Server2 receives 600 bytes at 2.15 am on the second x-axis. It may show 2:09am (or any other time) on the first x-axis, but the first x-axis is not for this line (just like the first y-axis is not for this line, so any value is possible). Is this not the case?

Personally, I think it is better to just use one x-axis, because it is not easy for people to know which x-axis is for which line. Most monitoring system uses a single x-axis, so they can compare the timing of the loading from different servers.

Is it possible to provide a screen shot on the chart you get so far, and inform me which point you think is not accurate?

Regards
Peter Kwan