|
Is it possible to draw two different multicharts on the same page? |
Posted by Marco Monaco on Feb-05-2024 22:25 |
|
I could have to display two different multicharts on the same page for graphical requirements. Is it possible? If so, how can I do it?
Thanks so much. |
Re: Is it possible to draw two different multicharts on the same page? |
Posted by Peter Kwan on Feb-05-2024 23:31 |
|
Hi Marco Monaco,
If you just need to display two multicharts, you can create two MultiChart objects and assign them to two chart viewers on the same page. Many examples that come with ChartDirector include multiple charts on the same page. For example, the following example display 6 bar charts on the same page:
https://www.advsofteng.com/doc/cdphp.htm#gapbar.htm
For your case, you can use MultiChart objects instead of XYChart objects for the chart viewers.
If you also need the multicharts to update in realtime, the exact code depends on your programming language/framework. Would you mind to clarify which programming language/framework you are using (Eg. C#/ASP.NET, PHP ...)?
Best Regards
Peter Kwan |
Re: Is it possible to draw two different multicharts on the same page? |
Posted by Marco Monaco on Feb-06-2024 00:37 |
|
Thanks for the prompt replay.
I'm using C#/ASP.NET with WebForms. |
Re: Is it possible to draw two different multicharts on the same page? |
Posted by Peter Kwan on Feb-06-2024 21:33 |
|
Hi Marco,
I assume you require real-time updates.
I have attached an example based on the original Real-Time MultiChart sample code:
https://www.advsofteng.com/doc/cdnet.htm#realtimemultichartweb.htm
The attached code is very similar to the original Real-Time MultiChart sample code. Basically, I just use the same code twice so it now has two charts.
Best Regards
Peter Kwan
|
Re: Is it possible to draw two different multicharts on the same page? |
Posted by Marco Monaco on Feb-06-2024 21:48 |
|
Thank you so much, Peter.
This is just what I was looking for.
Best Regards
Marco Monaco |
|