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')
}
}
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.
Reference to example reported in the forum link http://jsfiddle.net/JKV49/57/
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.
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.