PDA

View Full Version : Charting: Sorting data in BarChart and 2-axes BarChart...


abdo88
10-07-2007, 12:22 AM
Hello everyone,

I am building an app that requests XML through an HttpRequest and outputs the data to a datagrid and a BarChart... I have a rank column and the data in the dataGrid is sorted according to the rank in ascending order... However, on the BarChart, the first ranked is at the bottom... Is there a way to flip the data on the BarChart in such a way that the high ranked is the topmost... NOTE: I like the idea that by sorting the dataGrid according to for example the name, it does that to the graph too, so I cannot use separate dataSources for both or they won't be binded anymore...

My second question is that I want to draw a barChart that has three bars per record however, one is on a different scale... I tried doing this with <secondHorizontalAxis> but it draws the third(differently scaled) bar on TOP of the other two...

Any help would be really appreciated...
Thank you