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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Series duplicate in chart

Thread ID:





123867 Apr 27,2016 10:38 PM UTC Apr 29,2016 09:55 AM UTC ASP.NET Web Forms 3
Tags: Chart
Roimer Machacón Otero
Asked On April 27, 2016 10:38 PM UTC

Hi we're using charts but we've a problem, when have 2 series in chart the last series is duplicated and the first not appear.

This is a definition of a chart:

 <ej:Chart ID="chActPptoVsActEjdo" runat="server" CanResize="true" ClientIDMode="Static">
     <Title Text="<%$ Resources:Informes, diferenciaNumActividades %>"></Title>
     <Legend Visible="true" Position="Bottom">
         <Font FontSize="12px"></Font>
         <ItemStyle Height="11" Width="11" />
         <Tooltip Format="#point.x# : #point.y#" Visible="true" Fill="#72bc49">
             <Border Width="1" Color="#FFFFFF" />
             <Font Color="#FFFFFF"></Font>
     <PrimaryXAxis LabelRotation="0" HidePartialLabels="true" MaximumLabels="24">
         <Title Text="<%$ Resources:Generales, tipoActividad %>"></Title>
     <PrimaryYAxis LabelFormat="$ {value}">
         <Title Text=""></Title>
         <Font FontSize="12px"></Font>
         <ej:Series Name="<%$ Resources:Presupuesto, presupuestado %>" XName="TipoActividad" YName="NumActPpto" Type="Column">
         <ej:Series Name="<%$ Resources:Presupuesto, ejecutado %>" XName="TipoActividad" YName="NumActEjtdo" Type="Column">

Can observe that the definition of the chart is Ok the series shared the Xname and the Yname is different. Now when load a datatable with equals columns names the second series appear duplicate.

This occur to the update to Syncfusion version, this in the version that has previously worked correctly.

Attached to this post a image where can observe the error.

Attachment: duplicate_serie_b02141d2.rar

Sanjith Kesavan [Syncfusion]
Replied On April 28, 2016 01:24 PM UTC

Hi Roimer, 

Thanks for contacting Syncfusion support. We have analyzed your query and tried to replicate the reported issue. But we cannot reproduce the reported issue. When binding the datatable as the datasource for the chart, series is not duplicated. Please find the below code example. 

            DataTable table = new DataTable(); 
            table.Columns.Add("TipoActividad", typeof(string)); 
            table.Columns.Add("NumActPpto", typeof(int)); 
            table.Columns.Add("NumActEjtdo", typeof(int)); 
            table.Rows.Add("Sanidad", 23, 40); 
            table.Rows.Add("Fertilization", 3, 10); 
            table.Rows.Add("Labores de Campo", 48, 30); 
            table.Rows.Add("Reigo", 15, 10); 
            table.Rows.Add("Cosecha", 5, 20); 
            this.chActPptoVsActEjdo.DataSource = table; 

In the above code, we have created the datatable and bound that table as datasource for the chart. If we run the sample, then chart will render like below.  

Please ensure that columns you bound for y-values are containing different values.  

In the below link, we have attached sample for your reference.  
If you still face any concern, kindly let us know by modifying the attached sample along with replication procedure. Or else please provide the sample in which reported issue has been reproduced. This will be helpful for us to find and fix the issue sooner. 
Please let us know if you have any concern. 

Roimer Machacón Otero
Replied On April 28, 2016 01:35 PM UTC

Hi reviewing the data it if contain diferent values, really is a strange error

Sanjith Kesavan [Syncfusion]
Replied On April 29, 2016 09:55 AM UTC

Hi Roimer,    
We could not understand your requirement. So please let us know whether the previously provide sample is working at your end. If the issue still persists, then provide us the modified sample to reproduce the reported issue along with the replication procedure to validate the issue.   


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon