RangeBar Grouping issue

3 posts, 0 answers
  1. Joachim
    Joachim avatar
    39 posts
    Member since:
    Jul 2010

    Posted 06 Jan 2012 Link to this post

    Hello Telerik Team,

    I think i have found an issue with the grouping feature on rangebar chart.
    There is my xaml code :
    <telerikChart:RadChart Grid.Row="1"  x:Name="pmvRangesChart" ItemsSource="{Binding RangesChartDataSource}"
                                           telerik:Theming.Theme="Windows7" BorderThickness="0" Background="White">
                        <telerikChart:RadChart.SeriesMappings>
                            <telerikCharting:SeriesMapping>
                                <telerikCharting:SeriesMapping.SeriesDefinition>
                                    <telerikCharting:RangeBarSeriesDefinition ShowItemLabels="True" ItemLabelFormat="#DATAITEM.VOLUME_TOTAL{#}" >
                                        <telerikCharting:RangeBarSeriesDefinition.LabelSettings>
                                            <telerikCharting:BarLabelSettings Distance="-20" />
                                        </telerikCharting:RangeBarSeriesDefinition.LabelSettings>
                                    </telerikCharting:RangeBarSeriesDefinition>
                                </telerikCharting:SeriesMapping.SeriesDefinition>
                                <telerikCharting:SeriesMapping.GroupingSettings>
                                        <telerikCharting:GroupingSettings ShouldCreateSeriesForLastGroup="True">
                                            <telerikCharting:GroupingSettings.GroupDescriptors>
                                                <telerikCharting:ChartGroupDescriptor Member="Annee"/>
                                            </telerikCharting:GroupingSettings.GroupDescriptors>
                                        </telerikCharting:GroupingSettings>
                                    </telerikCharting:SeriesMapping.GroupingSettings>
                                <telerikCharting:ItemMapping FieldName="PMV_MIN" DataPointMember="Low" />
                                <telerikCharting:ItemMapping FieldName="PMV_MAX" DataPointMember="High" />
                                <telerikCharting:ItemMapping FieldName="GroupeArticleNom" DataPointMember="XCategory"/>
                            </telerikCharting:SeriesMapping>
                        </telerikChart:RadChart.SeriesMappings>
                    </telerikChart:RadChart>

    It produce the result shown in the screenshot "rangebar grouping.png"
    It's not what i expect because the bars are overlapping and it's useless...

    When i change the RangeBarSeriesDefinition with BarSeriesDefitinition the result as shown on the screenshot "bar_grouping.png" is what i expect.

    <telerikChart:RadChart Grid.Row="1"  x:Name="pmvRangesChart" ItemsSource="{Binding RangesChartDataSource}"
                                           telerik:Theming.Theme="Windows7" BorderThickness="0" Background="White">
                        <telerikChart:RadChart.SeriesMappings>
                            <telerikCharting:SeriesMapping>
                                <telerikCharting:SeriesMapping.SeriesDefinition>
                                    <telerikCharting:BarSeriesDefinition ShowItemLabels="True" ItemLabelFormat="#DATAITEM.VOLUME_TOTAL{#}" >
                                        <telerikCharting:BarSeriesDefinition.LabelSettings>
                                            <telerikCharting:BarLabelSettings Distance="-20" />
                                        </telerikCharting:BarSeriesDefinition.LabelSettings>
                                    </telerikCharting:BarSeriesDefinition>
                                </telerikCharting:SeriesMapping.SeriesDefinition>
                                <telerikCharting:SeriesMapping.GroupingSettings>
                                        <telerikCharting:GroupingSettings ShouldCreateSeriesForLastGroup="True">
                                            <telerikCharting:GroupingSettings.GroupDescriptors>
                                                <telerikCharting:ChartGroupDescriptor Member="Annee"/>
                                            </telerikCharting:GroupingSettings.GroupDescriptors>
                                        </telerikCharting:GroupingSettings>
                                    </telerikCharting:SeriesMapping.GroupingSettings>
                                <telerikCharting:ItemMapping FieldName="PMV_MAX" DataPointMember="YValue" />
                                <telerikCharting:ItemMapping FieldName="GroupeArticleNom" DataPointMember="XCategory"/>
                            </telerikCharting:SeriesMapping>
                        </telerikChart:RadChart.SeriesMappings>
                    </telerikChart:RadChart>

    RangeBar does not support grouping feature ?

    Thank you for your help.
    Joachim.
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 10 Jan 2012 Link to this post

    Hi,

    If I understand you correctly - you want to have the different range bars placed next to each other instead of being placed on top of one another. Unfortunately  the chart is not designed to work in a scenario with more than one range series. As a result you can not achieve this output with out-of-the-box means.

    Let us know if we can assist you any further.

    Kind regards,
    Petar Marchev
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
  4. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 11 Jan 2012 Link to this post

    Hello Joachim,

    I just wanted to let you know that I have logged this issue as a bug in our PITS where you can vote for the bug and follow its status. I have also updated your Telerik points as a sign of gratitude for bringing this issue to our attention.

    Regards,
    Petar Marchev
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top