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

Using RadChart control with a DateTime object.

1 Answer 99 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Duncan
Top achievements
Rank 1
Duncan asked on 01 Apr 2012, 12:06 PM
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.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 04 Apr 2012, 09:39 AM
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 >>
Tags
Chart
Asked by
Duncan
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or