Using RadChart control with a DateTime object.

2 posts, 0 answers
  1. Duncan
    Duncan avatar
    1 posts
    Member since:
    Mar 2012

    Posted 01 Apr 2012 Link to this post

    Hi Telerik community, this is my first post, how do you do :)


    Basically I have an application that was built without using any of Teleriks extra functionality, but now I want too improve the appplication, and insert the cool feature that is a RadChart.


    I'm trying to figure out how I can use a radChart to display a line or Pie chart (I'm not picky) under corresponding dateTime object.


    The application itself is a money management tool, under each month. I'm trying to display both Income and Expenditure.So the user will enter there income/outcome for that month, then the following month etc and then somehow using radCharts the charts change in synchronisation with the dateTime to display the income/outgoings in chart form, but albeit in a new pivot page.

    See attached image for a clearer understanding on what I'm trying to achieve.

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 04 Apr 2012 Link to this post

    Hi Duncan,

    Thank you for contacting us.
    Your requirement can be very easily satisfied with RadChart. All you need to do, is to create a business object that contains a value. In one case that value will represent income and in the other case it will represent expenditure. Then you just create a List<T>, or another type of enumerable, that contains two instances of your business object, one for income and one for expenditure and then bind RadChart to that list. If your object exposes a property named, say Value, after binding the chart you need to set a ValueBinding to the pie series so that the chart knows that it has to use the Value property to determine the relative sizes of the pie slices.

    For more information on how data binding in RadChart works and on RadPieChart please have a look at our online documentation.

    Write again if you need further assistance.

    Regards,
    Victor
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
Back to Top