sparkline doesn't fill the space that it is given

2 posts, 1 answers
  1. Jonathan
    Jonathan avatar
    10 posts
    Member since:
    Feb 2014

    Posted 29 Apr 2016 Link to this post



    I am trying to get a sparkline to be consistent in the amount of space that it uses.  The problem can be seen when a sparkline only has two points, it is significantly shorter than the sparkline with many points.

    I would expect that the two sparklines be of equal lengths.

  2. Answer
    Patrick avatar
    204 posts

    Posted 29 Apr 2016 Link to this post

    Hi Jonathan,

    Please take a look at this Telerik Dojo which shows an update of your example with both lines at the same size.

    categoryAxis.justified was added to the updated example to remove the space before and after the line, and position the points at major ticks.
         justified: true

    Hope this helps!

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top