Bar chart dynamic creation in aspx.cs

4 posts, 0 answers
  1. kiran
    kiran avatar
    2 posts
    Member since:
    May 2011

    Posted 09 Dec 2011 Link to this post

    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
  2. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 09 Dec 2011 Link to this post

    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.
  3. Divya
    Divya avatar
    9 posts
    Member since:
    Mar 2014

    Posted 24 Apr 2014 in reply to kiran Link to this post

    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 .

  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 28 Apr 2014 Link to this post

    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.

     
Back to Top