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

Bar Chart has additional Entries

2 Answers 24 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Glenn
Top achievements
Rank 1
Glenn asked on 03 Oct 2013, 03:51 PM
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 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Oct 2013, 01:25 PM
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.
0
Glenn
Top achievements
Rank 1
answered on 04 Oct 2013, 01:46 PM
Perfect!  That was it.  It just wasn't really apparent where to look.
Tags
Chart (HTML5)
Asked by
Glenn
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Glenn
Top achievements
Rank 1
Share this question
or