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

Message ListMessage List     Post MessagePost Message

  can spread the charts from each other ?
Posted by jill on Feb-22-2020 04:35
Attachments:
Hi,Can the graphs be shown separately in one chart ?
Something like the picture I attached?
16ff1.jpg

  Re: can spread the charts from each other ?
Posted by Peter Kwan on Feb-23-2020 18:08
Hi Jill,

Yes, you can use a MultiChart. The following is an example that uses a MultiChart to contain two XYCharts.

https://www.advsofteng.com/doc/cdcpp.htm#dualhbar.htm

In brief, you can create multiple XYChart objects. You can then create a MultiChart to contain all the XYChart objects, and display the MultiChart.

// Create multiple XYChart objects for your charts
XYChart *c0 = .....;
XYChart *c1 = .....;
......

// Use a MultiChart to contain all of them
MultiChart *m = new MultiChart(width, height);
m->addChart(0, 0, c0);
m->addChart(0, 100, c1);
......

...... Display the MultiChart .......

Hope this can help.

Regards
Peter Kwan