X Axis Label 'undefined' when no data

4 posts, 0 answers
  1. Thomas Cornelio
    Thomas Cornelio avatar
    5 posts
    Member since:
    Feb 2010

    Posted 07 May 2014 Link to this post

    Hi,

    Please take a look at the chart below. I am displaying data per hour and need to show the time in the X axis as shown below.

    However when there is no data for a given hour the system comes back as undefined, even though i can see the time label below it.

    How can i remove the 'undefined' text so that it does not spoil the view?

    Thanks

  2. Thomas Cornelio
    Thomas Cornelio avatar
    5 posts
    Member since:
    Feb 2010

    Posted 07 May 2014 Link to this post

    Image attached.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Thomas Cornelio
    Thomas Cornelio avatar
    5 posts
    Member since:
    Feb 2010

    Posted 09 May 2014 Link to this post

    No help on this matter?
  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 09 May 2014 Link to this post

    Hi Thomas,

    In Q1 2014 labels for nullables series items are displayed as 'undefined' string. In order to handle that you can use the following labels' template.
    mySeries.LabelsAppearance.ClientTemplate = "#if (value != null) {##=value##}#";

    Regards,
    Danail Vasilev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top