mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Added custom message for no data in graph
This commit is contained in:
parent
0af86e3934
commit
75494a130b
1 changed files with 1 additions and 1 deletions
|
|
@ -1070,6 +1070,7 @@
|
|||
var setD3Chart = function(type, data, refresh) {
|
||||
if (!$scope.chart[type]) {
|
||||
var chart = nv.models[type]();
|
||||
chart._options.noData = 'Invalid Data, check graph settings';
|
||||
$scope.chart[type] = chart;
|
||||
}
|
||||
|
||||
|
|
@ -1086,7 +1087,6 @@
|
|||
|
||||
$scope.chart[type].xAxis.tickFormat(function(d) {return xAxisTickFormat(d, xLabels);});
|
||||
$scope.chart[type].yAxis.tickFormat(function(d) {return yAxisTickFormat(d, yLabels);});
|
||||
|
||||
// configure how the tooltip looks.
|
||||
$scope.chart[type].tooltipContent(function(key, x, y, graph, data) {
|
||||
var tooltipContent = '<h3>' + key + '</h3>';
|
||||
|
|
|
|||
Loading…
Reference in a new issue