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
close icon

Problem with CreateSegments method in ColumnSeries

Hi,

I populate dinamically a SfChart which Series is collection of series (LineSeries, ColumnSeries, etc.).
For chart preview purpose, we create a new series collection from current Series and clone each series before add to the new series collection.

The problem occurs when we try to create a chart preview with ColumnSeries.

Exception : The given key was not present in the dictionary
StackTrace :
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Syncfusion.UI.Xaml.Charts.ChartSeriesBase.GetSideBySideInfo(ChartSeriesBase currentseries)
   at Syncfusion.UI.Xaml.Charts.ColumnSeries.CreateSegments()
   at CanmetENERGY.IBioref.UI.Charts.ColumnSerie.CreateSegments() in c:\Users\dquispeg\Desktop\Projets\Bioraffinerie\trunk\IBioref\UI\Charts\ColumnSerie.cs:line 244

Have you an idea how to fix this problem ?

Thanks,

Dario


2 Replies

SJ Sumathi Jayaraj Syncfusion Team April 27, 2015 11:22 AM UTC

Hi Dario,

Thanks for contacting Syncfusion support.

We have analyzed your requirement and we are unable to reproduce the issue in our side. We have prepared a sample based on your requirement. If problem persist, please revert us with the modified sample in order to reproduce the issue with replication procedure. This would be helpful for us to serve to better. Please find the sample in the following location.

Sample: Chart_WPF_Sample.zip

Regards,
Sumathi J


DE dev replied to Dario Quispe February 26, 2018 02:29 PM UTC

Hi,

I populate dinamically a SfChart which Series is collection of series (LineSeries, ColumnSeries, etc.).
For chart preview purpose, we create a new series collection from current Series and clone each series before add to the new series collection.

The problem occurs when we try to create a chart preview with ColumnSeries.

Exception : The given key was not present in the dictionary
StackTrace :
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Syncfusion.UI.Xaml.Charts.ChartSeriesBase.GetSideBySideInfo(ChartSeriesBase currentseries)
   at Syncfusion.UI.Xaml.Charts.ColumnSeries.CreateSegments()
   at CanmetENERGY.IBioref.UI.Charts.ColumnSerie.CreateSegments() in c:\Users\dquispeg\Desktop\Projets\Bioraffinerie\trunk\IBioref\UI\Charts\ColumnSerie.cs:line 244

Have you an idea how to fix this problem ?

Thanks,

Dario


Paragraph

Loader.
Live Chat Icon For mobile
Up arrow icon