diff --git a/src/app/panels/graphite/module.js b/src/app/panels/graphite/module.js
index 108958058c6..f643b38a343 100644
--- a/src/app/panels/graphite/module.js
+++ b/src/app/panels/graphite/module.js
@@ -82,6 +82,10 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
// Set and populate defaults
var _d = {
+ /** @scratch /panels/histogram/3
+ * renderer:: sets client side (flot) or native graphite png renderer (png)
+ */
+ renderer: 'flot',
/** @scratch /panels/histogram/3
* x-axis:: Show the x-axis
*/
@@ -240,10 +244,6 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
}
};
- $scope.typeAheadSource = function () {
- return ["test", "asd", "testing2"];
- };
-
$scope.remove_panel_from_row = function(row, panel) {
if ($scope.fullscreen) {
$rootScope.$emit('panel-fullscreen-exit');
@@ -307,6 +307,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
var graphiteQuery = {
range: filterSrv.timeRange(false),
targets: $scope.panel.targets,
+ renderer: $scope.panel.renderer,
maxDataPoints: $scope.panel.span * 50
};
@@ -319,6 +320,10 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
$scope.receiveGraphiteData = function(results) {
$scope.panelMeta.loading = false;
+ if (_.isString(results)) {
+ $scope.render(results);
+ return;
+ }
results = results.data;
$scope.legend = [];
@@ -474,5 +479,10 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
});
+
+ if (_.isString(data)) {
+ elem.html('');
+ return;
+ }
});
diff --git a/src/app/panels/graphite/styleEditor.html b/src/app/panels/graphite/styleEditor.html
index e61bda19c4d..d950ac7f0c3 100644
--- a/src/app/panels/graphite/styleEditor.html
+++ b/src/app/panels/graphite/styleEditor.html
@@ -1,6 +1,11 @@
+
+