RadColumnSparkline Visibility/Alignment not coming if more than 2 year

4 posts, 0 answers
  1. Balaji
    Balaji avatar
    19 posts
    Member since:
    Jul 2011

    Posted 07 Dec 2011 Link to this post

    Hi , 
     We are using Q1 2011 version of RAD silver light controls.
     
    We used this COntrol inside the Timebar control and provide the required Data as

    Time Bar - Period start and End date(Jan-1-2009 to Jan-1-2012)
    Time Bar - VisiblePeriod start and End date(Jan-1-2009 to Jan-1-2012)


    Provided the item source for RadColumnSparkline List of Name and Value for binding for all the dates from Start to end. 
    eg. My values will be 0 or 1 , so i have set 1 to First of every month(Jan , Feb etc for all the 3 yrs) and rest of the values as 0. 
    I.e [Only one day in month will be having the value as 1 all the others will be zero]

    But in the initial load , the column sparkline is not visible, with the same data if i zoom in then the sparkline is visible.
    Also if i set 1 to 2nd of every month , then the same is visible?

    Is it because of the older version we are using.



    Thanks 
    B.Balaji
  2. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 12 Dec 2011 Link to this post

    Hi Balaji,

    We created a small demo application using the details you shared and the sparkline loads as expected. The application was tested with Q1 2011 and Q3 2011 libraries and it works as expected in both. I have attached the source code of this test application so that you can test it in your environment.

    Regards,
    Yavor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Balaji
    Balaji avatar
    19 posts
    Member since:
    Jul 2011

    Posted 17 Dec 2011 Link to this post

    Hi,

    I ran the sample code and i am not able to see the sparkline. i hav attached the Screen shot(Screen shot1) which i ran in my machine.
    Is it because of Brower Verion(IE.7.0) or the screen resolution or screen size.

    Also when i resize(i mean Zoom in ) using the Rad silder, teh spark line missing in someothe month.Please see screenShot2(Same data , but just zoomed in)

    Thansk in advance.

    B.Balaji

  5. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 21 Dec 2011 Link to this post

    Hi Balaji,

    One possible reason why each bar differs in size is because they get too shallow (~1.* pixels) and the framework starts rounding them to +- 1 pixel. If you stretch the timebar you will observe that the bars will become wider and no bars are missing, but again the system tries to round them.

    You can try making the visible period smaller initially (perhaps a month). Another option could be to reduce the shown interval or increase the unit on which you show the bars from day to month for example.

    All the best,
    Yavor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top