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

Want to Hide Dates in X-Axis

1 Answer 64 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Vimal Panchal
Top achievements
Rank 1
Vimal Panchal asked on 28 May 2010, 10:41 AM
Hi

I wanted to display dates on x axis and i visited on of forum post and implemented in the way which is defined in that post. The Post is here http://www.telerik.com/community/forums/aspnet-ajax/chart/show-date-value-on-x-axis.aspx .

In this post Admin has provided solution by Adding date range to Chart. Here is the the problem. Let me explain my scenario.

In my case i have to show the report chart based on date range (Min date and Max date) has been selected from the  filter page.It is fine if user will select a date range that is not too long, means if user will generate report for 10 to 15 days then the chart will show the result for 15 days starting from Minimum date to Maximum date. The problem is, when user will select a date range for one year then it will try to display all the dates in X-Axis and which shows dates which are not having any data.

So, is there any property by which i can Hide the date(s) which are not having any data ? and it will show only those dates which are having some values attached to it.

can anybody help me in this?

Thanks,
Vimal Panchal


1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 02 Jun 2010, 04:21 PM
Hi Vimal,

You can check the approach shown in this help topic -- do not set range for X axis but rather provide a value for the DataLabelsColumn - that should be the name of the column with dates. Note, that you will have to convert the dates to the appropriate string before sending the data to RadChart.

Kind regards,
Ves
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart (Obsolete)
Asked by
Vimal Panchal
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or