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

Attributes for a single point

4 Answers 90 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Anne Lyon
Top achievements
Rank 1
Anne Lyon asked on 02 Jun 2010, 03:01 PM
Is it possible to change the attributes, like marker shape or color for a specific point on a line chart? I would like to be able to highlight a specific point on my chart so that the user can see that the data for that point needs attention..
Thanks!

4 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 07 Jun 2010, 02:34 PM
Hello Anne Lyon,

Modifying specific point is possible through the CreateItemStyleDelegate. You can read more on how to use it in the following blog post: Styling RadChart for WPF and Silverlight gets easier.

Best,
Joshua
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Anne Lyon
Top achievements
Rank 1
answered on 10 Jun 2010, 03:04 PM
Thank you for this example. My HUGE problem is here that the CreateItemStyleDelegate does not exist in my current Telerik version (2009.3.1314.1030). When I upgraded to the latest (2010.1.603.1030) then my whole chart became unrecognizable. Colors, axes, labels everything is now screwed up, If I for instance try to change the chart theme to Silver  (it uses the default Black) I get a crash in Telerik.Windows.Control.Charting:ChartArea.ClearLogicalChildren. My other controls have also changed looks and icons... What has happened? My chart is useless in this version (and my date and time pickers and slider bar looked nicer before...) and I don't even know where to start to get it right?

What can I do to get the CreateItemStyleDelegate functionality and also avoid the GUI mess in the latest version?

I can send you  a project to show my problems if you like.
0
Anne Lyon
Top achievements
Rank 1
answered on 11 Jun 2010, 11:35 AM
Overlooking the GUI problems in the latest version I cannot get the CreateItemStyle to work. I am using Line charts and want a specific point to have a square marker instead of a circle, or alternatively, make the point circle larger.
But the CreateItemStyleDelegate is raised only from the ChartLegendItem and LineSeries controls, and always the DataPoint parameter is null so I cannot check the value of a single point to evaluate the need for changing the style.
I can loop through all the point in the LineSeries control, but how do I then set the style for one specific point as CreateItemStyle will probably set the style for the whole LineSeries? Is there a way to do this?
0
Accepted
Dwight
Telerik team
answered on 16 Jun 2010, 06:54 AM
Hello Anne,

We will consider extending the CreateItemStyleDelegate to handle makers and other visuals for the line, area and the other similar series. Currently, however, I cannot provide workaround.

All the best,
Joshua
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Anne Lyon
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Anne Lyon
Top achievements
Rank 1
Share this question
or