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

Sorting problem in chart bar

1 Answer 247 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 23 Jun 2016, 11:04 AM

Hi,

I'm trying to sort a bar chart by using the sorting option in Telerik.Reporting.Graph ( see the attached files) with telerik Reporting Q1 2016 in Visual studio 2015.

Actually, i added a field and then i selected a 'Desc' sorting, but it's doesn't seem to be working , the bars chart order is unchanged.

(By the way i tried to sort programatically, like the exemple : http://docs.telerik.com/reporting/data-items-how-to-add-sorting-to-report-item, without success)

Has anyone found a way to pass the sorting parameters to a chart , or a solution that would work equally?

 

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 27 Jun 2016, 02:23 PM
Hello Julien,

Instead of adding sorting expression to Graph's Sortings collection add it to Graph's CategoryGroups Sortings collection. This will sort the columns according to the specified order.
Check the attached report demonstrating this approach (can be opened with the latest version of Standalone Designer).

On the side note, you can also sort Graph's columns in interactive mode - check Sorting Graph (Interactive Sorting Action) help article.

If the suggested approach does not help or your scenario is different please attach a sample report demonstrating the current settings of Graph item in a support ticket so we can provide you further suggestions.


Regards,
Katia
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Julien
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or