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

Bar chart date category hide bars without values

1 Answer 371 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 02 Dec 2015, 07:51 AM

Hello,

I have a bar chart with day as category but I don't have data for all the days.

Is it possible to show only the bars with values?

http://dojo.telerik.com/OPEba/2

Thanks,

Marco

1 Answer, 1 is accepted

Sort by
0
Accepted
Eduardo Serra
Telerik team
answered on 02 Dec 2015, 09:16 AM
Hello Marco,

It is not possible to skip days if the category axis is of date type because that would be like removing values from the x axis, it would skew the data. What can be done to achieve what you want is to treat the dates as strings. I have modified the sample you provided to satisfy your needs; take a look at it here.

Also, since I see you're working with charts and are interested in their design, I encourage you to take a look at a great article that was recently written by a colleague; read 6 Rules for Awesome Data Visualizations with Kendo UI here.

I hope this helps!

Regards,
Eduardo Serra
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Marco
Top achievements
Rank 1
Answers by
Eduardo Serra
Telerik team
Share this question
or