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.
Unfortunately, activation email could not send to your email. Please try again.

Maximum number of charts that can be drawn on single Chart Control

Thread ID:

Created:

Updated:

Platform:

Replies:

119771 Jul 30,2015 03:36 AM Jul 30,2015 09:38 AM Windows Forms 2
loading
Tags: Chart
SHUBHAM SRIVASTAVA
Asked On July 30, 2015 03:36 AM

Hi Support,

Could you please confirm whether multiple charts(of different types) can be drawn on same Chart control or not.
Please explain in detail possibly with the help of sample code.

Thanks in advance.
Regards.

Vinothkumar Arumugam [Syncfusion]
Replied On July 30, 2015 09:32 AM

Hi Shubham,
We have analyzed this. You can easily add multiple chart series in Same chart. We have prepared following four series in the same chart. Find the following code snippet to achieve this.
Code Snippet[WF]:

·         We have Created four series as below.

//Create multible chart as follows

ChartSeries series0 = new ChartSeries();

ChartSeries series1 = new ChartSeries();

ChartSeries series2 = new ChartSeries();

ChartSeries series3=new ChartSeries();

·         Adding data to the series as below.

//Add the data for the series as follows

for (int i = 0; i < 4; i++)

{

     for (int j = 0; j < 10; j++)

     {

         if(i==0)

             series0.Points.Add(j, yValue.Next(0,10));

         if(i==1)

             series1.Points.Add(j, yValue.Next(15,30));

         if(i==2)

             series2.Points.Add(j, yValue.Next(30,50));

         if(i==3)

             series3.Points.Add(j, yValue.Next(60,70));

     }

}

·         Add the series type as below

//Add the series types as follows

series0.Type = ChartSeriesType.Line;

series1.Type = ChartSeriesType.Column;

series2.Type = ChartSeriesType.Scatter;

series3.Type = ChartSeriesType.Bubble;
Limitations:

·         HiloOpen charts, Bar charts , Pie Charts cannot combin with other charts.
We have made a sample for this. Find the below link for downloading the sample.
Sample link:
Screen Shot of the attached sample;

Please let us know if you have any concern.
Thanks,
Vinothkumar Arumugam.


Vinothkumar Arumugam [Syncfusion]
Replied On July 30, 2015 09:38 AM

Hi Shubham,
Please find below sample link to download the sample.
Sample Link:
MultipleCharts

Thanks,
VInohtkumar.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;