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.

Series duplicate in chart

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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" />
     </Legend>
     <CommonSeriesOptions>
         <Tooltip Format="#point.x# : #point.y#" Visible="true" Fill="#72bc49">
             <Border Width="1" Color="#FFFFFF" />
             <Font Color="#FFFFFF"></Font>
         </Tooltip>
     </CommonSeriesOptions>
     <PrimaryXAxis LabelRotation="0" HidePartialLabels="true" MaximumLabels="24">
         <Title Text="<%$ Resources:Generales, tipoActividad %>"></Title>
     </PrimaryXAxis>
     <PrimaryYAxis LabelFormat="$ {value}">
         <Title Text=""></Title>
         <Font FontSize="12px"></Font>
     </PrimaryYAxis>
     <Series>
         <ej:Series Name="<%$ Resources:Presupuesto, presupuestado %>" XName="TipoActividad" YName="NumActPpto" Type="Column">
         </ej:Series>
         <ej:Series Name="<%$ Resources:Presupuesto, ejecutado %>" XName="TipoActividad" YName="NumActEjtdo" Type="Column">
         </ej:Series>
     </Series>
 </ej:Chart>

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 14.1.0.41, this in the version 12.4.0.36 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 09:24 AM

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. 

[C#] 
            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; 
            this.chActPptoVsActEjdo.DataBind(); 

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. 
 
Regards, 
Sanjith. 


Roimer Machacón Otero
Replied On April 28, 2016 09:35 AM

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

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

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.   
  
Regards,   
Sanjith.   


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.

;