Show chart legend on a line

Apr 12, 2010 at 3:02 PM

Is there a way to show the legend of a chart from the toolkit on a single line ? It seems like I can modify about anything except if the legend items are stack horizontally or vertically.

Apr 12, 2010 at 3:24 PM

Find the answer myself, from a Silverlight forum : Just create a chart style and add this :


Setter Property="LegendStyle">
                    <Style TargetType="datavis:Legend">
                        <Setter Property="Margin" Value="15,0,15,0"/>
                        <Setter Property="VerticalAlignment" Value="Center"/>
                        <Setter Property="ItemsPanel">
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"/>