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

Report Chart add up values DataGroupColumn

3 Answers 124 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert Lampe
Top achievements
Rank 1
Robert Lampe asked on 31 Jul 2010, 01:44 PM
Hi Guy,

I have a problem with the next chart inside my report.

I have the following data

Name Year Amount
Company A 2009 5
Company A 2009 5
Company B 2009 5
Company B 2009 5


I want two bars, one for Company A at X-axis value 2009 and Y value: 10, second is Company B with X-axis value 2009 and Y value 10.

The current situation is that I get two bars, for company A, one company B with both value: 5

How can I add up these values?

            this.chart1.DataGroupColumn = "Name";
            this.chart1.DataSource = this.sqlDataSource1;
            this.chart1.PlotArea.XAxis.AutoScale = false;
            this.chart1.PlotArea.XAxis.DataLabelsColumn = "Year";

Thank you,
Robert

3 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 03 Aug 2010, 10:49 PM
Hi Robert Lampe,

Currently the Chart item doesn't support out of the box grouping. However this is on our To Do list and we will introduce this feature in a subsequent version of Telerik Reporting. In the meantime as a workaround our suggestion is to group and aggregate your data appropriately in the SQL query as shown in the following example:
 

SELECT Name,Year,SUM(Amount) FROM Orders
GROUP BY Name

 

All the best,
Peter
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
0
Roy Halvorsen
Top achievements
Rank 1
answered on 03 May 2011, 03:06 PM
Does the Chart item now support out of the box grouping in the newest Telerik Q1 release? Any examples?
0
Peter
Telerik team
answered on 06 May 2011, 01:25 PM
Hi Roy Halvorsen,

The task for a chart item that supports grouping is with high priority. However the chart item included in Q1 2011 still don't support grouping.

Regards,
Peter
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
General Discussions
Asked by
Robert Lampe
Top achievements
Rank 1
Answers by
Peter
Telerik team
Roy Halvorsen
Top achievements
Rank 1
Share this question
or