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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can one set the icons in the legend

Thread ID:

Created:

Updated:

Platform:

Replies:

80471 Apr 4,2009 12:14 AM UTC Apr 7,2009 08:42 AM UTC WPF 4
loading
Tags: Chart
Dale Haessel
Asked On April 4, 2009 12:14 AM UTC

See the attachment (didn't see any samples doing this) => I want to bind the symbol in the legend to the adorner attached to the line => so if the adorner changes the legend changes. I see there are 16 different icons available for the legend in documentation. Can u point me to a sample where the line symbol or marker is set to the legend => I assume that is an adorner or is it something else => I don't really want to set an adorner and a legend => want to specify the data series uses a specific symbol or marker and automatically picked up by the legend.



symbols_fa99bae5.zip

Pavithra J [Syncfusion]
Replied On April 6, 2009 02:00 PM UTC

Hi Dale,

Thanks for your interest in Syncfusion products.

Your requirement of having same Symbol in Adornment and Legends can be achieved by writing SymbolTemplate and ItemTemplate respectively.

For your reference we have created a sample and you could download from the below given link,

Legend and Annotation Template

Please let us know if you have further queries.

Regards,
Pavithra.J


Dale Haessel
Replied On April 6, 2009 06:40 PM UTC

How do I set each element in the legend to a different marker?

Legend.ItemSource={"StaticResource Circle"}
sets all lines to a circle in the legend. Your example bound all legend icons to the same marker. I would like to have each legend icon have a different template rather than all having the same template.


Dale Haessel
Replied On April 6, 2009 06:53 PM UTC

How do I set each element in the legend to a different marker?

Legend.ItemSource={"StaticResource Circle"} => I want to define each line to have a different symbol rather than all legends. sets all lines to a circle in the legend. Your example bound all legend icons to the same marker. I would like to have each legend icon have a different template rather than all having the same template.

Here is some source code from Component One in xaml file => they have symbols on a data series and when symbol is set, it automatically appears in the legend => this is better than the adorners in syncfusion as far as I can tell:











Pavithra J [Syncfusion]
Replied On April 7, 2009 08:42 AM UTC

Hi Dale,

Thanks for your interest in Syncfusion products.

Your requirement of having different symbols in legends can be achieved with the help of converter logic.

For your reference we have created a sample and you could download from the below link,

Legend with different Icon sample

Please let us know if you have further queries.

Regards,
Pavithra.J


CONFIRMATION

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.

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

;