This question is locked. New answers and comments are not allowed.
Hi ,
I've used RadCatesianChart to dynamicly display some data, but the problem is that the label is not shown entirely sometimes. I attached the picture so you can refer to it. My XAML code is as below, I don't know where should I modify to make it work.
Thanks,
Yiqing
I've used RadCatesianChart to dynamicly display some data, but the problem is that the label is not shown entirely sometimes. I attached the picture so you can refer to it. My XAML code is as below, I don't know where should I modify to make it work.
<Chart:RadCartesianChart x:Name="mybarchart" HorizontalAlignment="Left" Height="420" Margin="140,55,20,20" Grid.Row="1" VerticalAlignment="Top" Width="670" PaletteName="DefaultDark" Foreground="Black" FontWeight="ExtraBold" FontSize="25"> <Chart:RadCartesianChart.VerticalAxis > <Chart:LinearAxis> <Chart:LinearAxis.LineStyle> <Style TargetType="Line"> <Setter Property="Stroke" Value="Black"/> <Setter Property="StrokeThickness" Value="2"/> </Style> </Chart:LinearAxis.LineStyle> <Chart:LinearAxis.LabelStyle> <Style TargetType="TextBlock"> <Setter Property="FontSize" Value="20"/> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="Foreground" Value="Black"/> <Setter Property="Margin" Value="20"/> </Style> </Chart:LinearAxis.LabelStyle> </Chart:LinearAxis> </Chart:RadCartesianChart.VerticalAxis> <Chart:RadCartesianChart.HorizontalAxis> <Chart:CategoricalAxis> <Chart:CategoricalAxis.LineStyle> <Style TargetType="Line"> <Setter Property="Stroke" Value="Black"/> <Setter Property="StrokeThickness" Value="2"/> </Style> </Chart:CategoricalAxis.LineStyle> <Chart:CategoricalAxis.LabelStyle> <Style TargetType="TextBlock"> <Setter Property="FontSize" Value="20"/> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="Foreground" Value="Black"/> </Style> </Chart:CategoricalAxis.LabelStyle> </Chart:CategoricalAxis> </Chart:RadCartesianChart.HorizontalAxis> <Chart:RadCartesianChart.Behaviors> <Chart:ChartSelectionBehavior SelectionChanged="ChartSelectionBehavior_SelectionChanged_1"/> </Chart:RadCartesianChart.Behaviors> <Chart:BarSeries ItemsSource="{Binding barchart}" ShowLabels="True"> <Chart:BarSeries.ValueBinding> <Chart:PropertyNameDataPointBinding PropertyName="count"/> </Chart:BarSeries.ValueBinding> <Chart:BarSeries.CategoryBinding> <Chart:PropertyNameDataPointBinding PropertyName="ProcessName"/> </Chart:BarSeries.CategoryBinding> </Chart:BarSeries> </Chart:RadCartesianChart>Thanks,
Yiqing