Line chart with grouping

5 posts, 0 answers
  1. Dhaval
    Dhaval avatar
    17 posts
    Member since:
    Feb 2011

    Posted 12 Feb 2011 Link to this post

    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,
  2. Dhaval
    Dhaval avatar
    17 posts
    Member since:
    Feb 2011

    Posted 15 Feb 2011 Link to this post

    Hi All,

    Pls give me the reply it's very urgent

    Thanks,
  3. DevCraft banner
  4. Nikolay
    Admin
    Nikolay avatar
    385 posts

    Posted 16 Feb 2011 Link to this post

    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>>
  5. Dhaval
    Dhaval avatar
    17 posts
    Member since:
    Feb 2011

    Posted 18 Feb 2011 Link to this post

    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,
  6. Nikolay
    Admin
    Nikolay avatar
    385 posts

    Posted 21 Feb 2011 Link to this post

    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
Back to Top
DevCraft banner