Skip to content

Commit

Permalink
Problems with singlestat and piechart panels #42 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
rozetko authored Jul 17, 2018
1 parent b2a4741 commit 39e5422
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 7,042 deletions.
29 changes: 15 additions & 14 deletions src/graph_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ import {

import { GraphCtrl } from './module';

import './vendor/flot/jquery.flot';
import './vendor/flot/jquery.flot.time';
import './vendor/flot/jquery.flot.selection';
import './vendor/flot/jquery.flot.stack';
import './vendor/flot/jquery.flot.stackpercent';
import './vendor/flot/jquery.flot.fillbelow';
import './vendor/flot/jquery.flot.crosshair';
import './vendor/flot/jquery.flot.dashes';
import './vendor/flot/jquery.flot.events';
import 'grafana/vendor/flot/jquery.flot.js';
import 'grafana/vendor/flot/jquery.flot.time.js';
import 'grafana/vendor/flot/jquery.flot.selection.js';
import 'grafana/vendor/flot/jquery.flot.stack.js';
import 'grafana/vendor/flot/jquery.flot.stackpercent.js';
import 'grafana/vendor/flot/jquery.flot.fillbelow.js';
import 'grafana/vendor/flot/jquery.flot.crosshair.js';
import 'grafana/vendor/flot/jquery.flot.dashes.js';
import 'grafana/vendor/flot/jquery.flot.gauge.js';
import 'grafana/vendor/flot/jquery.flot.pie.js';
import './vendor/flot/jquery.flot.events.js';

// import { EventManager } from 'grafana/app/features/annotations/event_manager';
import TimeSeries from 'grafana/app/core/time_series2';
Expand Down Expand Up @@ -76,11 +78,11 @@ export class GraphRenderer {
if(this._ananlyticController === undefined) {
throw new Error('ananlyticController is undefined');
}


// this.annotations = [];
this.panelWidth = 0;

// this.eventManager = new EventManager(this.ctrl);
this.flotOptions = {}
this.thresholdManager = new ThresholdManager(this.ctrl);
Expand Down Expand Up @@ -349,7 +351,7 @@ export class GraphRenderer {
var strokeAlpha = 0.4;
if(this._isAnomalyEvent(e)) {
if(this._ananlyticController.labelingDeleteMode) {
color = this.contextSrv.user.lightTheme ?
color = this.contextSrv.user.lightTheme ?
ANOMALY_REGION_DELETE_COLOR_LIGHT :
ANOMALY_REGION_DELETE_COLOR_DARK;
} else {
Expand Down Expand Up @@ -841,4 +843,3 @@ function updateLegendValues(data: TimeSeries[], panel) {
}
}
}

2 changes: 1 addition & 1 deletion src/threshold_manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './vendor/flot/jquery.flot';
import 'grafana/vendor/flot/jquery.flot.js';
import * as $ from 'jquery';
import _ from 'lodash';

Expand Down
176 changes: 0 additions & 176 deletions src/vendor/flot/jquery.flot.crosshair.js

This file was deleted.

Loading

0 comments on commit 39e5422

Please sign in to comment.