Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3220
xamDataChart: Multiple ColumnSeries Legend issue
posted

Hello,

when showing the legend for a multi columnseries with DarkMetro theme, there is a strange text visible, which shouldn't be there is think. At least in the demos, it isn't shown.

Is there a way to get rid of that text "(Auflistung)"?

<DockPanel>
                <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal">
                    
                </StackPanel>

                <ig:XamDataChart x:Name="myChart" Title="{Binding ChartTitle}" TitleFontSize="{StaticResource titleFontSize}" Legend="{Binding ElementName=legend}">
                    <ig:XamDataChart.Axes>
                        <ig:CategoryXAxis Name="xAxis" ItemsSource="{Binding ChartItems}" Label="{}{CategoryName}" Title="{Binding XAxisTitle}"/>
                        <ig:NumericYAxis Name="yAxis" Label="{Binding YAxisLabel}" Title="Defect Count"
                                 MinimumValue="{Binding ChartSettings.YAxisActualMinValue}"
                                 MaximumValue="{Binding ChartSettings.YAxisActualMaxValue}"/>
                    </ig:XamDataChart.Axes>

                    <ig:XamDataChart.Series>
                        <!-- Added in code behind -->
                    </ig:XamDataChart.Series>

                </ig:XamDataChart>
            </DockPanel>

            <ig:Legend x:Name="legend" HorizontalAlignment="Right" Margin="20"
                   VerticalAlignment="Top" Content="{Binding ChartItems}">
            </ig:Legend>

  • 34430
    Verified Answer
    Offline posted

    Hello Markus,

    I have been investigating into the behavior you are seeing, and this extra label appears to be coming from the fact that you have the Content property of your Legend bound. If you remove this binding, this should go away.

    Please let me know if you have any other questions or concerns on this matter.