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

Line chart with grouping

4 Answers 65 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Dhaval
Top achievements
Rank 1
Dhaval asked on 12 Feb 2011, 11:34 AM
Hi,

I've seen that it is possible to create groupings (with ChartAggregateFunction) for bar charts. Is it possible to do it with line charts also? If yes, how?

Thanks,

4 Answers, 1 is accepted

Sort by
0
Dhaval
Top achievements
Rank 1
answered on 15 Feb 2011, 07:15 AM
Hi All,

Pls give me the reply it's very urgent

Thanks,
0
Nikolay
Telerik team
answered on 16 Feb 2011, 08:42 AM
Hello Dhaval,

Yes, it is possible to use the grouping and aggregation function with all series, including Line. For more information on how to use the feature, please, have a look at this help topic, you may also find our demo example useful.

Hope this helps.

Greetings,
Nikolay
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Dhaval
Top achievements
Rank 1
answered on 18 Feb 2011, 12:50 PM
Hi Nikolay,

I have already 110 times refer your suggested link and demo but i can't find solution.

I post one line chart with grouping example and send me output from this
and then after tell me is it line chart?, and is it possible to grouping in line chart?

<UserControl x:Class="SilverlightApplication3.line"
    xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
  
    <Grid x:Name="LayoutRoot" Background="White">
        <telerikChart:RadChart x:Name="radChart" d:LayoutOverrides="Width, Height" BorderThickness="5" />
    </Grid>
</UserControl>
SeriesMapping seriesMapping = new SeriesMapping();
            seriesMapping.SeriesDefinition = new LineSeriesDefinition();
  
            
                seriesMapping.GroupingSettings.GroupDescriptors.Add(new ChartGroupDescriptor("Status"));
                //seriesMapping.GroupingSettings.GroupDescriptors.Add(new ChartGroupDescriptor("Stage"));
                //seriesMapping.GroupingSettings.ShouldCreateSeriesForLastGroup = false;
                seriesMapping.ItemMappings.Add(new ItemMapping("Status", DataPointMember.XCategory));
                seriesMapping.ItemMappings.Add(new ItemMapping("Status", DataPointMember.YValue, ChartAggregateFunction.Count));
                radChart.SeriesMappings.Clear();
                radChart.SeriesMappings.Add(seriesMapping);
  
                //public ProductSales(Double estimaterevenue,string stage , string status)
  
                List<ProductSales> persons = new List<ProductSales>();
                persons.Add(new ProductSales(1000, "Preliminary Quoted", "In Progress"));
                persons.Add(new ProductSales(3000, "Preliminary Quoted", "In Progress"));
                persons.Add(new ProductSales(2000, "Meeting Arranged", "Not Started"));
                persons.Add(new ProductSales(5000, "Meeting Arranged", "In Progress"));
                persons.Add(new ProductSales(7000, "Preliminary Quoted", "Not Started"));
                persons.Add(new ProductSales(8000, "Rewise Quote", "Completed-won"));
                persons.Add(new ProductSales(12000, "Rewise Quote", "Not Started"));
                persons.Add(new ProductSales(5000, "Meeting Arranged", "Not Started"));
  
                this.radChart.ItemsSource = persons;

i want quickly reply from your side
and me the one example of line chart with grouping

if you don't have an answer then also give me the reply quickly

Thanks,
0
Nikolay
Telerik team
answered on 21 Feb 2011, 09:36 AM
Hi Dhaval,

Could you please show us an image of what the desired chart would look like, so that we can help you resolving the issue.

We have already answered in your other thread about Line chart and grouping, so if the issue is the same you can find our answer here.

All the best,
Nikolay
the Telerik team
Tags
Chart
Asked by
Dhaval
Top achievements
Rank 1
Answers by
Dhaval
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or