This commit is contained in:
committed by
Torkel Ödegaard
parent
1a6c2ea8d8
commit
08211eb220
@@ -18,6 +18,7 @@ import GraphTooltip from './graph_tooltip';
|
|||||||
import { ThresholdManager } from './threshold_manager';
|
import { ThresholdManager } from './threshold_manager';
|
||||||
import { EventManager } from 'app/features/annotations/all';
|
import { EventManager } from 'app/features/annotations/all';
|
||||||
import { convertValuesToHistogram, getSeriesValues } from './histogram';
|
import { convertValuesToHistogram, getSeriesValues } from './histogram';
|
||||||
|
import config from 'app/core/config';
|
||||||
|
|
||||||
/** @ngInject **/
|
/** @ngInject **/
|
||||||
function graphDirective(timeSrv, popoverSrv, contextSrv) {
|
function graphDirective(timeSrv, popoverSrv, contextSrv) {
|
||||||
@@ -286,6 +287,10 @@ function graphDirective(timeSrv, popoverSrv, contextSrv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function buildFlotOptions(panel) {
|
function buildFlotOptions(panel) {
|
||||||
|
let gridColor = '#c8c8c8';
|
||||||
|
if (config.bootData.user.lightTheme === true) {
|
||||||
|
gridColor = '#a1a1a1';
|
||||||
|
}
|
||||||
const stack = panel.stack ? true : null;
|
const stack = panel.stack ? true : null;
|
||||||
let options = {
|
let options = {
|
||||||
hooks: {
|
hooks: {
|
||||||
@@ -332,7 +337,7 @@ function graphDirective(timeSrv, popoverSrv, contextSrv) {
|
|||||||
borderWidth: 0,
|
borderWidth: 0,
|
||||||
hoverable: true,
|
hoverable: true,
|
||||||
clickable: true,
|
clickable: true,
|
||||||
color: '#c8c8c8',
|
color: gridColor,
|
||||||
margin: { left: 0, right: 0 },
|
margin: { left: 0, right: 0 },
|
||||||
labelMarginX: 0,
|
labelMarginX: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user