Rad chart Yaxix tick label :- telerikCharting:GroupingSettings.GroupDescriptors ISSue

2 posts, 0 answers
  1. FIJO
    FIJO avatar
    19 posts
    Member since:
    Sep 2010

    Posted 08 Oct 2010 Link to this post

    HI ,
    PLEASE HELP ME URGENT (:.-.:)
    As  per you suggested in previous reply i have done all the settings now graph look like as per attachment with this RADCHARTSAMPlE.JPG


    XAML part look like this

    In this YAxisDisplayName is a combined collection or concatnated string of FeatureName+ FeatureStatusName+ReviseEstimate

     

     

     

     

     

     

     

    It is coming now all the ytick label collection in above how do i get it as the chart in infragisticsSample.jpg  here each label and yaaxix value is directly aligen in a strigth y axix tick. HOW DO I DO THAT?

    Please have look at ReleaseFeatureChart.xaml which i am using now in RADCHARTSAMPlE.JPG . please respond me as soon as possible.

    With Thanks,
    Fijo
    ReleaseFeatureChart.xaml

     <UserControl  x:Class="LeMonNext.Client.Modules.ProjectCockpit.Views.ReleaseView.ReleaseFeatureChart"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
         >
        <UserControl.Resources>
            <ResourceDictionary >
                <ResourceDictionary.MergedDictionaries >
                    <ResourceDictionary Source="/LeMonNext.Client.Modules.ProjectCockpit;component/Style/Resource.xaml"></ResourceDictionary>
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </UserControl.Resources>
        <Grid x:Name="LayoutRoot" Background="White">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0" Grid.Row="1" CornerRadius="1,1,1,1" BorderBrush="#193441" Background="#FCFFF5" BorderThickness="1,1,1,1" Margin="2" Padding="2">
                <telerik:RadChart  x:Name="_Features" ItemsSource="{Binding Features}" 
                  Style="{StaticResource CustomChartStyle}"  BorderBrush="#585ED681"
                                       Foreground="#FF88CC9D" OpacityMask="#FFBEDC9C">
                    <telerik:RadChart.DefaultView>
                        <telerik:ChartDefaultView>
                            <telerik:ChartDefaultView.ChartArea>
                                <telerik:ChartArea>
                                    <telerik:ChartArea.AxisX>
                                        <telerik:AxisX  Title="Features(In Order Of Priority)">
                                        </telerik:AxisX>
                                    </telerik:ChartArea.AxisX >
                                    <telerik:ChartArea.AxisY>
                                        <telerik:AxisY Title="Scheduled Effort (Hours)" >
                                        </telerik:AxisY>
                                    </telerik:ChartArea.AxisY>
                                </telerik:ChartArea>
                            </telerik:ChartDefaultView.ChartArea>
                            <telerik:ChartDefaultView.ChartLegend>
                                <telerik:ChartLegend x:Name="chartLegend"
                                                     Background="LightYellow"
                                                     UseAutoGeneratedItems="True" FontSize="10" FontFamily="Arial" />
                            </telerik:ChartDefaultView.ChartLegend>
                        </telerik:ChartDefaultView>
                    </telerik:RadChart.DefaultView>
                    <telerik:RadChart.SeriesMappings>
                        <telerik:SeriesMapping>
                            <telerik:SeriesMapping.SeriesDefinition>
                                <telerik:HorizontalBarSeriesDefinition ShowItemToolTips="True" ShowItemLabels="True"
                                                                              ItemToolTipFormat="Scheduled Effort #Y{N},PercentageCompleted #Y{N}"
                                                                              ShowZeroValuesLabels="False"  
                                                                               />
                            </telerik:SeriesMapping.SeriesDefinition>
                            <telerikCharting:SeriesMapping.GroupingSettings>
                                <telerikCharting:GroupingSettings>
                                    <telerikCharting:GroupingSettings.GroupDescriptors>
                                        <telerikCharting:ChartGroupDescriptor Member="FeatureName"/>
                                        <telerikCharting:ChartGroupDescriptor Member="FeatureStatusName"/>
                                        <telerikCharting:ChartGroupDescriptor Member="ReviseEstimate"/>
                                    </telerikCharting:GroupingSettings.GroupDescriptors>
                                </telerikCharting:GroupingSettings>
                            </telerikCharting:SeriesMapping.GroupingSettings>
                            <telerik:SeriesMapping.ItemMappings>
                                <telerik:ItemMapping  FieldName="YAxisDisplayName"  DataPointMember="XCategory"/>
                                <telerik:ItemMapping FieldName="ScheduledEffort" DataPointMember="YValue"  />
                            </telerik:SeriesMapping.ItemMappings>
                        </telerik:SeriesMapping>
                    </telerik:RadChart.SeriesMappings>
                    <telerik:RadChart.PaletteBrushes>
                        <SolidColorBrush Color="Orange"/>
                    </telerik:RadChart.PaletteBrushes>
                </telerik:RadChart>
            </Border>
        </Grid>
    </UserControl>

  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 12 Oct 2010 Link to this post

    Hello FIJO,

    You can find your question answered in your forum post - http://www.telerik.com/community/forums/silverlight/chart/rad-chart-yaxix-tick-label-binding-to-graph.aspx.

    Greetings,
    Evgenia
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top