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

Bar chart dynamic creation in aspx.cs

3 Answers 27 Views
Let's talk about telerik (the good and the bad)
This is a migrated thread and some comments may be shown as answers.
kiran
Top achievements
Rank 1
kiran asked on 09 Dec 2011, 10:08 AM
Hello i am doing a bar chart which has two values which i am getting from the data base . i want to define one  column data as x-axis and 
another column data as my y -axis and create a bar chart.I want to know how i can define the x-axis labels and y- axis labels and from that data i want to build the bar chart .
For example 1->20,2->30,3->43.2,4->25.7,5->33.4.
Now  the 1,2,3,4,5 are my x-axis values and 20,30,43.2,25.7,33.4 are my y- axis values 
 Taking these two values i want to build a chart in aspx.cs  so that the values will dynamicall change when updated.
Please can u explain how can i give these values in telerik in  aspx.cs file .

Thanks in advance
Regards,
Kirancharley

3 Answers, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 09 Dec 2011, 05:05 PM
Hello Kiran,

I would suggest you to review the following help articles here to familiarize yourself with the concepts of building RadChart instances declaratively and in code-behind.


Greetings,
Bart.
0
Divya
Top achievements
Rank 1
answered on 24 Apr 2014, 05:46 AM
i am new to telerik bar chart which has two values which i am getting
from the data base . i want to define one  column data as x-axis and 

another column data as my y -axis and create a bar chart.I want to know
how i can define the x-axis labels and y- axis labels and from that data
i want to build the bar chart .

For example may-2013->20,september-2013->30,december-2013->43.2,->25.7,jan-2014->33.4.

Now  the may-2013,september-2013,december-2013,jan-2014 are my x-axis values and 20,30,43.2,25.7,33.4 are my y- axis values 

 Taking these two values i want to build a chart in aspx.cs  so that the values will dynamicall change when updated.

Please can u explain how can i give these values in telerik in  aspx.cs file .

0
Danail Vasilev
Telerik team
answered on 28 Apr 2014, 09:40 AM
Hello Divya,

Please find an example on how to configure a date axis to display discrete and continuous data, in RadChart and RadHtmlChart for a data bound scenario in this help article.

Note also that since Q1 2014 the RadChart control is obsolete. More information on the matter is available in this blog post.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Let's talk about telerik (the good and the bad)
Asked by
kiran
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Divya
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or