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.

Hiding specific Adornments

Thread ID:

Created:

Updated:

Platform:

Replies:

110211 Jul 24,2013 02:42 PM Jul 26,2013 02:44 AM WPF 3
loading
Tags: Chart
marc
Asked On July 24, 2013 02:42 PM

I've found that loading adornments is very slow- it holds up the UI when setting the chartseries.AdornmentsInfo.Visibility = true. 

In an effort to speed things up, I want to be able to turn on specific adornments... currently the chart loads all adornments even if they are off the edge of the chartarea. This causes a bunch of adornments to load on the edges of the graph and it looks terrible. 

What is the best way to go about only loading adornments which are visible on the range of the primary axis?

Muneesh Kumar G [Syncfusion]
Replied On July 25, 2013 01:56 AM

Hi Marc,

Thanks for using Syncfusion products.

We are not able to reproduce the issue and also our Chart Adornments will not be visible outside the PrimaryAxis range. We have prepared a sample with Adornments and please find the sample from the following location

If you still have the problem, please revert us with more information regarding your scenario and your Essential Studio version or a simple sample with replication procedure to reproduce the issue.

Please let me know if you have any queries.

Thanks,

Muneesh Kumar G.



ChartSeriesAdornments_364a1f74.zip

marc
Replied On July 25, 2013 08:58 AM

I included a picture of the issue. 

Here's my set up: 

1) I create a new chart series, bound to an observable collection, setting the adornments info:
            ChartSeries series = new ChartSeries(ChartTypes.Spline)
            {
                Name = clientName,
                DataSource = collection,
                Interior = _colors[_meterLoop.Measures.Keys.Count % _colors.Count],
                BindingPathX = "Sample Number", //this doesn't actually bind to anything
                BindingPathsY = new string[] { "Value" },
                AdornmentsInfo = new ChartAdornmentInfo()
                {
                    Symbol = Symbol.Ellipse,
                    SymbolHeight = 8,
                    SymbolWidth = 8,
                    SymbolInterior = _colors[_meterLoop.Measures.Keys.Count % _colors.Count],
                    SegmentLabelContent = LabelContent.LabelContentPath,
                    SegmentLabelFontSize = 0,
                    LabelContentPath = "gibberish" //this is a hack to make it not show a label
                }
            };
            dataChartArea.Series.Add(series);

2) At runtime, the user may choose to display the adornments so they can see exactly where their data is plotted:

            foreach (ChartSeries serie in dataChartArea.Series)
            {
                serie.AdornmentsInfo.Visible = true;
            }
3) Then the issue arises...


showAdornments_36244705.zip

Muneesh Kumar G [Syncfusion]
Replied On July 26, 2013 02:44 AM

Hi Marc,

We are afraid that we are not able to reproduce the issue illustrated in the image. We have prepared a sample with for dynamic updates of  Interval, Range and  ShowAdornments. Please find the sample from the following location.

If you still face the problem please revert us by modifying the attached sample with replication procedure. Also please update the Essential Studio Version,  which will be helpful for us to serve you.

Please let us know if you have any queries,

Regards,
Muneesh Kumar G.

Sample_20fdf90c.zip

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.

;