Declined
Last Updated: 06 Feb 2015 09:12 by Lisitsa
Lisitsa
Created on: 20 Jan 2015 20:49
Category: UI for WPF
Type: Feature Request
1
Improve BarSeries support
Make legend item of BarSeries reflect it's visual style. For example, if I'll make a BarSeries with a border like this:
<Style TargetType="Border">
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="BorderBrush" Value="{StaticResource chartRed}" />
</Style>

then there won't be a rectangle in a legend as expected (it will show a transparent one instead, without border).

REASON FOR DECLINATION:
The RadLegend is a standalone control which allows for customization of the legend item visuals (one can use the ItemTemplate property of the RadLegend to control the legend item's appearance or can retemplate the LegendItemControl). There is no direct link between the ChartView and the RadLegend control and the appearance of the legend elements can be done by framework means such as Style, DataTemplate and ControlTemplate. The suggested way of manipulating the look of the chart legend item is making use of the ItemTemplate property of the RadLegend and the MarkerGeometry property of the series legend settings. 
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
Lisitsa
Posted on: 06 Feb 2015 09:12
I understand that RadLegend is standalone control, but it somehow gets the color of LineSeries, so why it can't get the border color of BarSeries?
Unfortunately, this is another disadvantage of Telerik's chart: too many things have to be done manually instead of having it out of the box. Another example is having to manually set PointTemplate just to have series tooltips!
Infragistics chart doesn't have this problem.
Lisitsa
Posted on: 20 Jan 2015 21:55
Actually, legend item misses a border. Unfortunately, I can't edit this feature request to make the title more clear...