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

RangeBar Grouping issue

2 Answers 35 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Joachim
Top achievements
Rank 1
Joachim asked on 06 Jan 2012, 11:35 AM
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 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 10 Jan 2012, 04:35 PM
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 >>
0
Petar Marchev
Telerik team
answered on 11 Jan 2012, 01:13 PM
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 >>
Tags
Chart
Asked by
Joachim
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or