Under Review
Last Updated: 11 May 2016 06:35 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')
    }
}
3 comments
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.