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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Customization of FastCharts Demo : try to apply on FastLine

Thread ID:





96537 Sep 20,2010 09:57 AM UTC Sep 24,2010 09:19 AM UTC WPF 1
Tags: Chart
Asked On September 20, 2010 09:57 AM UTC


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 ?



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

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.

Abdul Rahman



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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