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

X Axis Label 'undefined' when no data

3 Answers 87 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Thomas Cornelio
Top achievements
Rank 1
Thomas Cornelio asked on 07 May 2014, 10:13 AM
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

3 Answers, 1 is accepted

Sort by
0
Thomas Cornelio
Top achievements
Rank 1
answered on 07 May 2014, 10:44 AM
Image attached.
0
Thomas Cornelio
Top achievements
Rank 1
answered on 09 May 2014, 08:19 AM
No help on this matter?
0
Danail Vasilev
Telerik team
answered on 09 May 2014, 12:37 PM
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.

 
Tags
Chart (HTML5)
Asked by
Thomas Cornelio
Top achievements
Rank 1
Answers by
Thomas Cornelio
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or