Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ea198fea
Commit
ea198fea
authored
Jul 17, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(graph): fixed legend color when having many many series, fixes #2359
parent
666013b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
public/app/features/templating/templateValuesSrv.js
+8
-8
public/app/panels/graph/module.js
+2
-1
No files found.
public/app/features/templating/templateValuesSrv.js
View file @
ea198fea
...
@@ -230,17 +230,17 @@ function (angular, _, kbn) {
...
@@ -230,17 +230,17 @@ function (angular, _, kbn) {
this
.
addAllOption
=
function
(
variable
)
{
this
.
addAllOption
=
function
(
variable
)
{
var
allValue
=
''
;
var
allValue
=
''
;
switch
(
variable
.
allFormat
)
{
switch
(
variable
.
allFormat
)
{
case
'wildcard'
:
case
'wildcard'
:
allValue
=
'*'
;
allValue
=
'*'
;
break
;
break
;
case
'regex wildcard'
:
case
'regex wildcard'
:
allValue
=
'.*'
;
allValue
=
'.*'
;
break
;
break
;
case
'regex values'
:
case
'regex values'
:
allValue
=
'('
+
_
.
pluck
(
variable
.
options
,
'text'
).
join
(
'|'
)
+
')'
;
allValue
=
'('
+
_
.
pluck
(
variable
.
options
,
'text'
).
join
(
'|'
)
+
')'
;
break
;
break
;
default
:
default
:
allValue
=
'{'
;
allValue
=
'{'
;
allValue
+=
_
.
pluck
(
variable
.
options
,
'text'
).
join
(
','
);
allValue
+=
_
.
pluck
(
variable
.
options
,
'text'
).
join
(
','
);
allValue
+=
'}'
;
allValue
+=
'}'
;
}
}
...
...
public/app/panels/graph/module.js
View file @
ea198fea
...
@@ -175,7 +175,8 @@ function (angular, app, $, _, kbn, moment, TimeSeries, PanelMeta) {
...
@@ -175,7 +175,8 @@ function (angular, app, $, _, kbn, moment, TimeSeries, PanelMeta) {
$scope
.
seriesHandler
=
function
(
seriesData
,
index
)
{
$scope
.
seriesHandler
=
function
(
seriesData
,
index
)
{
var
datapoints
=
seriesData
.
datapoints
;
var
datapoints
=
seriesData
.
datapoints
;
var
alias
=
seriesData
.
target
;
var
alias
=
seriesData
.
target
;
var
color
=
$scope
.
panel
.
aliasColors
[
alias
]
||
$rootScope
.
colors
[
index
];
var
colorIndex
=
index
%
$rootScope
.
colors
.
length
;
var
color
=
$scope
.
panel
.
aliasColors
[
alias
]
||
$rootScope
.
colors
[
colorIndex
];
var
series
=
new
TimeSeries
({
var
series
=
new
TimeSeries
({
datapoints
:
datapoints
,
datapoints
:
datapoints
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment