Completed
Last Updated: 14 May 2021 10:55 by ADMIN
Aaron
Created on: 17 Jan 2012 23:38
Category: Kendo UI for jQuery
Type: Feature Request
9
DataViz support for empty data sets
I'm building an app that is using DataViz for charting but there are scenarios where it's possible to *not* have any data returned to map out in the chart.

I'd like to be able to:
- Set an X and Y axis value so the plot area is displayed
- Provide either a message, a function or a DOM element which will be displayed over the chart

Here's a snippet of how I think the API could expose it:

$('#chart').kendoChart({ 
    noData: {
      seriesMax: 100,
      category: 'Some category',
      message: 'No data!' || function () { return 'No Data!' } || $('.no-data-message')
    }
}
4 comments
ADMIN
Viktor Tachev
Posted on: 14 May 2021 10:55

Hi,

Check out the example below that illustrates how a message can be displayed when there is no data in the Chart widget:

https://docs.telerik.com/kendo-ui/controls/charts/how-to/appearance/show-no-data-available-message

 

Regards,
Viktor Tachev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Marcelo
Posted on: 14 Jan 2015 13:42
Reference to example reported in the forum link http://jsfiddle.net/JKV49/57/
Marcelo
Posted on: 14 Jan 2015 13:37
Hi, this does not solve my problem. I have a Pie Chart Kendo UI with 2 series that return the dataSource.data().length equal to 2 always, because the information is with zero values.
ADMIN
Telerik Admin
Posted on: 18 Jan 2012 15:29
Presently the chart will display the axes when no data is available, without empty data message. I will log your request for future consideration, for now you can output the message in a div and position it over the chart.