Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this hook to edit the "No Data" message that appears when there is nothing to display in a graph.
Usage
add_filter('frm_no_data_graph', 'no_data_graphs', 10, 2); function no_data_graphs($html)
Parameters
- $html (string)
Examples
Replace "No Data" Message
If you are displaying a graph for a form field and it has no data, you can use the example below to replace the default "No Data" message.
add_filter('frm_no_data_graph', 'no_data_graphs', 10, 2);
function no_data_graphs($html){
$html = 'There are no entries for this graph. Sorry!'; //replace this text string
return $html;
}