Customization of FastCharts Demo : try to apply on FastLine

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


1 Reply

AR Abdul Rahman A.H Syncfusion Team 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.


Regards,
Abdul Rahman




ChartSample_2a1ae9b1.zip

Loader.
Up arrow icon