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

SfChart Spline Series strange behaviour

Hi,

I added this SfChart control using Spline Series with tooltip enabled and I'm getting this strange behaviour when I click on the data point the entire chart resizes (shrinks) itself and then few seconds later return back to its regular size. Strangely enough it is not happening all the time. My code:

              foreach (var taskGroup in _groupedByTask)
                {
                    var currentColor = GetNextColor(position);

                    var lineSeries = new SplineSeries
                    {
                        StrokeWidth = 2,
                        DataSource = GetAggregatedDataForTaskName(taskGroup, searchCriteria),
                        TooltipEnabled = true,
                        Label = taskGroup.Key,
                        Color = currentColor,
                        DataMarker =
                        {
                            ShowMarker = true,
                            ShowLabel = true,
                            MarkerWidth = 5,
                            MarkerHeight = 5,
                            MarkerColor = currentColor
                        },
                    };

                    position++;
                    _chart.Series.Add(lineSeries);
                } 

Attached archive with images demonstrating this resizing.  
The chart itself is programatically added to LinearLayout with height and width set to match parent.

                   var layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
                    _reportView.AddView(_chartView, layoutParams);

What can I do to stop this from happening?

Many Thanks,
Milen

Attachment: BeforeAndAfterClick_d147b087.rar

1 Reply

PS Parthiban Sundaram Syncfusion Team August 1, 2016 11:51 AM UTC

Hi Milen,

We have tested with different configurations and multiple cases and still we are unable to reproduce the reported issue at our end. Can you please reproduce the issue in the below sample? If not, please update us the modified sample or give us more details about the issue.

Sample: http://www.syncfusion.com/downloads/support/forum/125198/ze/Simplesample-1000070847 

Regards,
Parthiban S.
 


Loader.
Up arrow icon