Hi,
I've a bar graph which can contain from only one value to a hundred values and the bars and the axis labels are too small to be readable. So i've modified my xaml to use a scrollviewer but tha's not enough : the scrollbars appears too late; the axis label are still too small.
How can i change the threshold making the scrollbars visible ?
Sample
Thanks
- Cedric -
I've a bar graph which can contain from only one value to a hundred values and the bars and the axis labels are too small to be readable. So i've modified my xaml to use a scrollviewer but tha's not enough : the scrollbars appears too late; the axis label are still too small.
How can i change the threshold making the scrollbars visible ?
Sample
Thanks
- Cedric -
<telerik:RadChart x:Name="RadChart1" ItemsSource="{Binding Data}" UseDefaultLayout="False"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid Grid.Row="1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBlock Text="{Binding ElementName=chartArea, Path=ActualWidth, StringFormat=AreaWidth \{0\}}"/> <TextBlock Text="{Binding ElementName=chartArea, Path=ActualHeight, StringFormat=AreaHeight \{0\}}" Grid.Column="1" /> <TextBlock Text="{Binding ElementName=RadChart1, Path=ActualWidth, StringFormat=WWidth \{0\}}" Grid.Row="1" /> <TextBlock Text="{Binding ElementName=RadChart1, Path=ActualHeight, StringFormat=WHeight \{0\}}" Grid.Row="1" Grid.Column="1" /> <telerik:ChartLegend x:Name="legend" Grid.Column="2" Grid.RowSpan="2" ItemsPanelOrientation="Horizontal" BorderThickness="0" Padding="5,0" Header="" /> </Grid> <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"> <telerik:ChartArea Grid.Row="0" x:Name="chartArea" Legend="{Binding ElementName=legend}" EnableAnimations="False" Padding="5,10,20,10"> <telerik:ChartArea.AxisX> <telerik:AxisX /> </telerik:ChartArea.AxisX> </telerik:ChartArea> </ScrollViewer> </Grid> <telerik:RadChart.SeriesMappings> <telerik:SeriesMapping LegendLabel="Close" ChartAreaName="chartArea"> <telerik:SeriesMapping.SeriesDefinition> <telerik:HorizontalBarSeriesDefinition ShowItemLabels="True" /> </telerik:SeriesMapping.SeriesDefinition> <telerik:SeriesMapping.ItemMappings> <telerik:ItemMapping FieldName="Name" DataPointMember="XCategory" /> <telerik:ItemMapping FieldName="Value" DataPointMember="YValue" /> </telerik:SeriesMapping.ItemMappings> </telerik:SeriesMapping> </telerik:RadChart.SeriesMappings> </telerik:RadChart>