Bar Chart has additional Entries

3 posts, 0 answers
  1. Glenn
    Glenn avatar
    5 posts
    Member since:
    Oct 2012

    Posted 03 Oct 2013 Link to this post

    I'm using the bar chart.  My current dataset has 8 entries in it, dates in the range of Sept 2nd through Oct 2nd.  When I display the chart I expect there to only be 8 sets of bars.  Instead it is showing every date in between.  I don't want that.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 04 Oct 2013 Link to this post

    Hello Glenn,

    Could you try setting the Type property of the XAxis to Category? When dates are passed it will default to Date which will add the time intervals inbetween as items, while using the Category setting it will create objects only for the items in the datasource, regardless of their actual time difference: http://www.telerik.com/help/aspnet-ajax/htmlchart-date-axis.html.


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Glenn
    Glenn avatar
    5 posts
    Member since:
    Oct 2012

    Posted 04 Oct 2013 Link to this post

    Perfect!  That was it.  It just wasn't really apparent where to look.
Back to Top