|
multiple Y-axis ranges chart |
Posted by cho on Aug-07-2020 18:20 |
|
Hi Peter,
I want to implement a real-time chart by applying realtimetrack (MFC example).
The Y-axis range of the three items is as follows.
Alpha is 0 ~ 3000,
Beta is 0 ~ 2,
Gamma is -10 to +10.
If I set the Y-axis range based on Alpha, I cannot see the Beta and Gamma waveforms clearly.
If I set based on Beta or Gamma, Alpha's waveform go out of the chart area.
In this case, I would like to know how to implement a chart so that I can see all the waveforms clearly.
Please let me know your detailed solution with a example.
Thanks in advance.
Regards
Cho |
Re: multiple Y-axis ranges chart |
Posted by Peter Kwan on Aug-08-2020 15:26 |
|
Hi Cho,
There are two methods:
(a) Use mutliple y-axis, like:
https://www.advsofteng.com/doc/cdcpp.htm#multiaxes.htm
(b) Use a MultiChart like in the attached image.
Please let me know which style you prefer. I can create a simple Visual Studio example for you.
Regards
Peter Kwan
|
Re: multiple Y-axis ranges chart |
Posted by cho on Aug-08-2020 21:28 |
|
Hi Peter,
I am glad that you are willing to help.
This time I want to apply style (a).
But I have a desire to know both. If your circumstances allow...
Thank you again.
Regards
Cho |
Re: multiple Y-axis ranges chart |
Posted by Peter Kwan on Aug-10-2020 21:14 |
|
Hi Cho,
Attached please find two MFC examples - one is based on the multi-axes method (see attached image), and one is based on the MultiChart method.
Hope this can help.
Regards
Peter Kwan
|
Re: multiple Y-axis ranges chart |
Posted by cho on Aug-11-2020 08:29 |
|
Hi Peter,
First of all, thank you for your kind help.
Among the samples provided, "the multi-axes method (see attached image)" is different from the illustrated style (a) image. It's a single axis chart.
(But the second sample "the MultiChart method" is the same chart as style (b).)
Could you please re-attach "the multi-axes method (style (a))" sample if possible?
Always thank you.
Regards
Cho
|
Re: multiple Y-axis ranges chart |
Posted by Peter Kwan on Aug-11-2020 12:12 |
|
Hi cho,
Sorry for the mistake. Attached please find the correct realtimetrack_multiaxes_mfc.zip.
Regards
Peter Kwan
|
Re: multiple Y-axis ranges chart |
Posted by cho on Aug-11-2020 12:27 |
|
Hi Peter,
Thank you very much for your help.
Regards
Cho |
|