Want to Hide Dates in X-Axis

Thread is closed for posting
2 posts, 0 answers
  1. Vimal Panchal
    Vimal Panchal avatar
    1 posts
    Member since:
    May 2010

    Posted 28 May 2010 Link to this post


    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?

    Vimal Panchal

  2. Ves
    Ves avatar
    2926 posts

    Posted 02 Jun 2010 Link to this post

    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,
    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.
Back to Top