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.

SfChart Spline Series strange behaviour

Thread ID:

Created:

Updated:

Platform:

Replies:

125198 Jul 29,2016 02:32 AM Aug 1,2016 07:51 AM Xamarin.Android 1
loading
Tags: SfChart
Milen Pavlov
Asked On July 29, 2016 02:32 AM

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

Parthiban Sundaram [Syncfusion]
Replied On August 1, 2016 07:51 AM

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.
 


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.

;