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.

Customization of FastCharts Demo : try to apply on FastLine

Thread ID:

Created:

Updated:

Platform:

Replies:

96537 Sep 20,2010 05:57 AM Sep 24,2010 05:19 AM WPF 1
loading
Tags: Chart
Arnard
Asked On September 20, 2010 05:57 AM

Hello,

I would change the color of the line, setting it in red, if the value is bad. I start with Customization of FastCharts Demo, I add FastLine in the ChartType array, but when I select FastLine in the comboxbox, all series get a blue color, like FastScatter. Is it impossible with fastScatter and FastLine to customize the color ?

An alternative could be displaying a normal serie, and as much red series as I got bad values, but it's not a good pattern :/

Do you have an idea ?

Thanks.


Arnaud MARCELLIN


Abdul Rahman A.H [Syncfusion]
Replied On September 24, 2010 05:19 AM

Hi Arnaud,


Thanks for choosing Syncfusion products.


You can achieve the requirement by writing custom FastSeriesPresenter. You can specify different interior brush of the segment in OnRender method.

Please find the simple sample attached which demonstrates the rendering of fast line chart with multiple interiors.

Sample details are as follows.
1) Chart is bound to a model. The series is bound to a collection object of custom data, which has a property called Flag to specify the good / bad value. (Modify this according to your application).
2) OnRender will draw line Segments with different pen for different Flag values.


Let me know any queries you have.


Regards,
Abdul Rahman




ChartSample_2a1ae9b1.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.

;