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
ac94fc93
Commit
ac94fc93
authored
Nov 20, 2018
by
Peter Holmberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix label and default threshold
parent
4e1f49f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
public/app/plugins/panel/gauge/GaugeOptions.tsx
+1
-1
public/app/viz/Gauge.tsx
+1
-4
No files found.
public/app/plugins/panel/gauge/GaugeOptions.tsx
View file @
ac94fc93
...
@@ -30,7 +30,7 @@ export default class GaugeOptions extends PureComponent<Props> {
...
@@ -30,7 +30,7 @@ export default class GaugeOptions extends PureComponent<Props> {
</
div
>
</
div
>
<
div
className=
"gf-form-inline"
>
<
div
className=
"gf-form-inline"
>
<
Switch
<
Switch
label=
"Threshold
label
s"
label=
"Threshold
marker
s"
labelClass=
"width-10"
labelClass=
"width-10"
checked=
{
showThresholdMarkers
}
checked=
{
showThresholdMarkers
}
onChange=
{
this
.
toggleThresholdMarkers
}
onChange=
{
this
.
toggleThresholdMarkers
}
...
...
public/app/viz/Gauge.tsx
View file @
ac94fc93
...
@@ -40,6 +40,7 @@ export class Gauge extends PureComponent<Props> {
...
@@ -40,6 +40,7 @@ export class Gauge extends PureComponent<Props> {
}
}
componentDidUpdate
(
prevProps
:
Props
)
{
componentDidUpdate
(
prevProps
:
Props
)
{
console
.
log
(
'did update'
);
this
.
draw
();
this
.
draw
();
}
}
...
@@ -63,10 +64,6 @@ export class Gauge extends PureComponent<Props> {
...
@@ -63,10 +64,6 @@ export class Gauge extends PureComponent<Props> {
stat
,
stat
,
}
=
this
.
props
;
}
=
this
.
props
;
console
.
log
(
'-------------------'
);
console
.
log
(
'showThresholdMarkers'
,
showThresholdMarkers
);
console
.
log
(
'showThresholdLabels'
,
showThresholdLabels
);
const
dimension
=
Math
.
min
(
width
,
height
*
1.3
);
const
dimension
=
Math
.
min
(
width
,
height
*
1.3
);
const
backgroundColor
=
config
.
bootData
.
user
.
lightTheme
?
'rgb(230,230,230)'
:
'rgb(38,38,38)'
;
const
backgroundColor
=
config
.
bootData
.
user
.
lightTheme
?
'rgb(230,230,230)'
:
'rgb(38,38,38)'
;
const
fontColor
=
config
.
bootData
.
user
.
lightTheme
?
'rgb(38,38,38)'
:
'rgb(230,230,230)'
;
const
fontColor
=
config
.
bootData
.
user
.
lightTheme
?
'rgb(38,38,38)'
:
'rgb(230,230,230)'
;
...
...
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