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
ff691917
Unverified
Commit
ff691917
authored
Jul 27, 2020
by
Torkel Ödegaard
Committed by
GitHub
Jul 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gauge: Fix display name showing for only single series (#26617)
parent
cc0a8464
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
public/app/plugins/panel/bargauge/BarGaugePanel.tsx
+2
-2
public/app/plugins/panel/gauge/GaugePanel.tsx
+2
-2
No files found.
public/app/plugins/panel/bargauge/BarGaugePanel.tsx
View file @
ff691917
...
...
@@ -21,7 +21,7 @@ export class BarGaugePanel extends PureComponent<PanelProps<BarGaugeOptions>> {
valueProps
:
VizRepeaterRenderValueProps
<
FieldDisplay
,
DisplayValueAlignmentFactors
>
,
menuProps
:
DataLinksContextMenuApi
):
JSX
.
Element
=>
{
const
{
options
}
=
this
.
props
;
const
{
options
,
fieldConfig
}
=
this
.
props
;
const
{
value
,
alignmentFactors
,
orientation
,
width
,
height
,
count
}
=
valueProps
;
const
{
field
,
display
,
view
,
colIndex
}
=
value
;
const
{
openMenu
,
targetClassName
}
=
menuProps
;
...
...
@@ -33,7 +33,7 @@ export class BarGaugePanel extends PureComponent<PanelProps<BarGaugeOptions>> {
return
(
<
BarGauge
value=
{
clearNameForSingleSeries
(
count
,
field
,
display
)
}
value=
{
clearNameForSingleSeries
(
count
,
field
Config
.
defaults
,
display
)
}
width=
{
width
}
height=
{
height
}
orientation=
{
orientation
}
...
...
public/app/plugins/panel/gauge/GaugePanel.tsx
View file @
ff691917
...
...
@@ -12,14 +12,14 @@ export class GaugePanel extends PureComponent<PanelProps<GaugeOptions>> {
valueProps
:
VizRepeaterRenderValueProps
<
FieldDisplay
>
,
menuProps
:
DataLinksContextMenuApi
):
JSX
.
Element
=>
{
const
{
options
}
=
this
.
props
;
const
{
options
,
fieldConfig
}
=
this
.
props
;
const
{
width
,
height
,
count
,
value
}
=
valueProps
;
const
{
field
,
display
}
=
value
;
const
{
openMenu
,
targetClassName
}
=
menuProps
;
return
(
<
Gauge
value=
{
clearNameForSingleSeries
(
count
,
field
,
display
)
}
value=
{
clearNameForSingleSeries
(
count
,
field
Config
.
defaults
,
display
)
}
width=
{
width
}
height=
{
height
}
field=
{
field
}
...
...
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