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

Continous Month display

2 Answers 35 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 15 Dec 2010, 10:08 AM
Hi,

I am using the RADChart for simple bar graph. The data what I will be having will be

Month    Count
Jan    213
Feb    345
May    344
Jul    102
Aug    123

I am binding the data in the code behind using

RadChart1.Series[0].DataYColumn = "Count";
RadChart1.PlotArea.XAxis.DataLabelsColumn = "Month";
RadChart1.DataBind();

So is there any way to confiure the chart to display the missing months. The value of course for those will be zero. But is there a way to display all the months from Jan to Dec?

2 Answers, 1 is accepted

Sort by
0
Sandeep
Top achievements
Rank 1
answered on 20 Dec 2010, 09:11 AM
Any solution for this?

Please I need this urgently

Regards,
Sandeep
0
Ves
Telerik team
answered on 20 Dec 2010, 04:28 PM
Hi Sandeep,

The easiest solution here would be to ensure that you send a full set of 12 records/objects to RadChart. You can create an array with all 12 months and use a loop to add those that do not have values.

Kind regards,
Ves
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Sandeep
Top achievements
Rank 1
Ves
Telerik team
Share this question
or