This is a migrated thread and some comments may be shown as answers.

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

1 Answer 65 Views
Chart
This is a migrated thread and some comments may be shown as answers.
FIJO
Top achievements
Rank 1
FIJO asked on 08 Oct 2010, 07:49 AM
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>

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 12 Oct 2010, 01:01 PM
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
Tags
Chart
Asked by
FIJO
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or