This is a migrated thread and some comments may be shown as answers.

[Solved] Change the color/opacity of specific data-points.

3 Answers 152 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 19 Jul 2012, 09:02 AM
Hi,



is it possible to change the color or opacity of some specific data-points in a areaseries? i.e. let say I would like to show the future values of GDP just like in your sample App but I want to mark the area beneath them(smaller opacity/gray).



Regards,

Michael

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 20 Jul 2012, 09:07 AM
Hi Michael,

Generally our chart series have several levels of extensibility and almost any complex visual scenario can be achieved. For example you may pass specific fill to the desired series, or you may specify PointTemplate for each DataPoint, or you may pass PointTemplateSelector to provide context-specific templates for each data point.

Could you please send me a sample screen or demo app of what your scenario is so that I can assist you further?

I am looking forward to your reply.

Kind regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michael
Top achievements
Rank 1
answered on 20 Jul 2012, 10:04 AM
Hi Georgi,

I would like to accomplish something simillar to the example on the screenshot. Every serie has to parts: until i.e. 2011 and after that. They should have different colors/opacities. The only solution i've found was to generate to series(one until 2011 and one from that point with different opacity). The problem with this solution is that the series have to be stacked. When i'm changing this to stacked i'm getting 4 stacked series which is not exactly what I want...
Is it possible to use only one AreaSeries but to modify the opacity of the area under some datapoints?

Regards,
Michael
0
Accepted
Georgi
Telerik team
answered on 23 Jul 2012, 08:18 AM
Hi Michael,

Thanks for the attached screen.

This is quite an advanced scenario. If these are supposed to be 2 separate area series then our component does not support the it. I am wondering however if it is possible to describe the data as four different area series, overlapping each other, with the appropriate z-index. In this case I think that we will be able to display the chart, having a DateTimeContinuousAxis as its HorizontalAxis.

Do you have some sample data so that I can experiment a bit?

Regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart for XAML
Asked by
Michael
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Michael
Top achievements
Rank 1
Share this question
or