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
39e45004
Commit
39e45004
authored
Mar 31, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
heatmap: inverted the color schemes
parent
4445c9ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
public/app/plugins/panel/heatmap/rendering.ts
+2
-2
No files found.
public/app/plugins/panel/heatmap/rendering.ts
View file @
39e45004
...
...
@@ -428,7 +428,7 @@ export default function link(scope, elem, attrs, ctrl) {
function
setColorScale
(
max_value
)
{
let
colorInterpolator
=
d3
[
panel
.
color
.
colorScheme
];
colorScale
=
d3
.
scaleSequential
(
colorInterpolator
).
domain
([
0
,
max_value
]);
colorScale
=
d3
.
scaleSequential
(
colorInterpolator
).
domain
([
max_value
,
0
]);
}
function
setOpacityScale
(
max_value
)
{
...
...
@@ -711,7 +711,7 @@ export default function link(scope, elem, attrs, ctrl) {
let
legendHeight
=
d3
.
select
(
"#heatmap-color-legend"
).
attr
(
"height"
);
let
colorInterpolator
=
d3
[
panel
.
color
.
colorScheme
];
let
legendColorScale
=
d3
.
scaleSequential
(
colorInterpolator
).
domain
([
0
,
legendWidth
]);
let
legendColorScale
=
d3
.
scaleSequential
(
colorInterpolator
).
domain
([
legendWidth
,
0
]);
let
rangeStep
=
2
;
let
valuesRange
=
d3
.
range
(
0
,
legendWidth
,
rangeStep
);
...
...
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