Bar chart date category hide bars without values

2 posts, 1 answers
  1. Marco
    Marco avatar
    1 posts
    Member since:
    Jun 2015

    Posted 02 Dec 2015 Link to this post

    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

  2. Answer
    Eduardo Serra
    Admin
    Eduardo Serra avatar
    50 posts

    Posted 02 Dec 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top