I'm unable to change the font size of my legend. I'm using the Legend control outside of the XamDataChart like so:
<ig:Legend x:Name="LegendTotal" Grid.Row="2" FontSize="30"/>
But changing the FontSize from 30 or 100 does no difference.
Hello PMac,
No, the Legend's Title* and Items* properties are not available in versions of DataChart prior to 15.2 release. However, I implemented a workaround for 14.1 version and I attached it to this forum post. All you need to do is re-template Legend and add new Legend Item template. Then you can to change:- Font* properties on Legend to style title of the Legend - Font* properties on each Series to style legend items that show up in the LegendLet me know if you have more questions about DataChart and its Legend.
Is this available in 14.1? Those properties appear to be added in 15,2 and after.
I don't see any properties for Item within the Legend tag for 14.1. Is there a work-around?
Thanks
You can change font size of the Legend controls using the following properties:
- TitleFontSize (sets Font size on title of legend)
- ItemsFontSize (sets Font size on items of legend)
We added above properties for styling Legend controls in the 2015 Volume 2 release. Here is more information on properties of Legend control.
http://help.infragistics.com/Help/Doc/WPF/2016.1/CLR4.0/html/DataChart_Legends.html#Properties
Also, WPF samples browser has LegendStyling sample that shows how to change these properties.