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.
Syncfusion Feedback

Multiple series SfChart with Trendlines and Render Issue

Thread ID:

Created:

Updated:

Platform:

Replies:

118759 Apr 8,2015 06:50 AM UTC Apr 14,2015 04:19 AM UTC WPF 5
loading
Tags: SfChart
Chong Yee Mei
Asked On April 8, 2015 06:50 AM UTC

Hi,

Currently I'm doing multiple series sfchart and trend-lines on it. Save and load chart function also included. 
The chart plotted successfully, but faced few issues.

How can I standardize the color for the same series of chart segment and trend-line?

I tried set the trend-line color with the same series chart with chart segment interior color.
But when I load the chart, it having problem with segment. It failed to get segment.

It possible is render issue, since no problem when called the ShowTrendline()  method manually by button after load chart.
Error when run the ShowTrendline() method automatically after load function.
It failed to get chart segment.

Please advise, thanks.


Sumathi Jayaraj [Syncfusion]
Replied On April 9, 2015 09:19 AM UTC

Hi Chong,

Thanks for contacting Syncfusion support.

Query 1: How can I standardize the color for the same series of chart segment and trend-line?

We can able to standardize the color for Trendline and the series by binding the Interior of the series to the Stroke property of Trendline. We have prepared a sample based on this. Please find the sample in the following location.

Query 2: Chart segment rendering issue

We are unable to reproduce the issue at our end. Could you please provide the sample based on your requirement with replication steps in order to reproduce the issue? It would be help full for us to serve you better.

Sample: TrendlineSample.zip

Please let us know if you have any queries.

Regards,
Sumathi J

Chong Yee Mei
Replied On April 10, 2015 02:47 AM UTC

Hi, thanks for guiding.

The below attachment is regarding of the issue. 
Currently I'm using chart segment interior color to standardize the trendline color of same series.

No problem with displays trendline manually by button after chart plotted out, but error when chart and trendline plotted together.
Any solution?

Please advise, thank you!

Attachment: TrendlineIssueSample_8c4a2817.zip

Sumathi Jayaraj [Syncfusion]
Replied On April 10, 2015 10:12 AM UTC

Hi Chong,

Thanks for the update.

We have analyzed the sample and we found that the segments of the custom series is not created, when we invoke the DisplayTrndline() method. So that exception thrown, when we try to access the Segments collection in DisplayTrndline() method.

We have modified the sample by invoking the method using dispatcher and please find that sample in the following location.

Sample: TrendlineIssueSample.zip

Please let us know if you have any queries.

Regards,
Sumathi J

Chong Yee Mei
Replied On April 13, 2015 07:02 AM UTC

Hi,

The code works well now.
Thanks for support.


Sumathi Jayaraj [Syncfusion]
Replied On April 14, 2015 04:19 AM UTC

Hi Chong,

Thanks for the update. Please let us know if you require further assistance on this.

Regards,
Sumathi J

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.

Warning Icon 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.Close Icon

;