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

How to populate Stacked Bar Chart from an XML file or Datatable

2 Answers 44 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Manushi
Top achievements
Rank 1
Manushi asked on 21 Feb 2011, 11:05 AM
Hi,
I am using VS 2010.I am new to this (AJAX RAD Controls/AJAX RAD Charts).I am having an xml file having 3 tables.Now my requirement is to plot a Stacked bar Chart dynamically retrieving values from different tables.Kindly help me out.

I have retrive values from different table into One Datatable named "ValuesToDisplay"

05:30  06:00  06:30  07:00  07:30  08:00  08:30  09:00  09:30  10:00  10:30 
01       02       01       04       04        02     03        04       03         05     01       
02        04       01      04       05        03     01        04       01         01     02       
03        03       02      02       01        04     02        02       03         05     04      
Now on X-axis should be the Time(ie 05:30 ......) and on Y-axis the values(ie 1 2 ...).Graph should be in this format

10|
9  |               ___
8  |               |      |
7  |               |  3  |
6  |    ___     |___|
5  |    |      |    |      |                           and so on ......................
4  |    | 3   |    |  4  |    ___
3  |    |___|    |      |    |  2  |
2  |    |  2  |    |___|    |___|
1  |    |___|    | 2   |    |_1_|
0  |__|_1_|__|___|__|_1_|_________________________________________
        05:30   06:00   06:30  07:00 07:30 08:00 08:30 09:00 09:30 10:00 10:30  

2 Answers, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 23 Feb 2011, 11:47 AM
Hello Manushi,

I would suggest you to go through the RadChart databinding help articles to get you started -- http://www.telerik.com/help/aspnet-ajax/buildingdatabind.html.


Greetings,
Bart.
0
Stefen
Top achievements
Rank 1
answered on 17 Jun 2011, 11:10 PM
This reply is very generic and unhelpful. fyi 
Tags
Chart (Obsolete)
Asked by
Manushi
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Stefen
Top achievements
Rank 1
Share this question
or