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!
Thanks!
4 Answers, 1 is accepted
0
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.
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.
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?
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
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.
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.