We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Multiple Chart

Dear Support Team,
I'm using version 8.304.0.21.

I need to draw N indipendent line charts in a single form. Each Chart has the same X data, but multiple Y

For what I know about Syncfusion ChartControl only one ChartArea can be hosted for each ChartControl instance.
A ChartArea can host multiple Series, but it is not what I have to do.

So I tried ho insert ChartControls in a TableLayout component, but with this solution some I have problems to implement printing functions (preview and print) for the whole set of Chart.

Have you any suggestion?

Thank you very much
Best regards
Domenico Mozzone
Setteidea srl


3 Replies

SC Subash Chandran M Syncfusion Team November 23, 2010 07:21 AM UTC

Hi Domenico,

Thank you for using Syncfusion Products.

We suggest you to use “Chart secondary axes” to implement your behavior. Create a secondary axis ‘sa1’ and set the orientation to vertical. You can use the opposed position to render series in opposite to implied position. Add the secondary axes to the chart control. Use the implied primary X axis and set the Yaxis of the chart series to secondary axis ‘sa1’ which is created.

Here is a code snippet to illustrate this :
[C#]
Syncfusion.Windows.Forms.Chart.ChartAxis sa1 = new ChartAxis();
sa1.Orientation = ChartOrientation.Vertical;
sa1.OpposedPosition = true;
mycc.Axes.Add(sa1);
// setting the Yaxis of chartseries1 to secondaryaxis1
cs1.YAxis = sa1;

A sample to meet your requirement is uploaded.

Please let me know if it helps.

Regards,
Subash Chandran M





Forum97361_48f683fc.zip


DM Domenico Mozzone November 26, 2010 09:18 AM UTC

Thank you very much for your suggestion and example.
I'll check your idea with the final user.

Best Regards
Domenico



SC Subash Chandran M Syncfusion Team November 30, 2010 04:28 AM UTC


Hi Domenico,

Thanks for the update.

Please do let us know if you have any other concerns and we will be happy to assist you.

Regards,
Subash Chandran M



Loader.
Live Chat Icon For mobile
Up arrow icon