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
802d34ce
Commit
802d34ce
authored
Apr 04, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue where legend may not show on initial load
parent
f566baae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
panels/histogram/module.js
+4
-7
No files found.
panels/histogram/module.js
View file @
802d34ce
...
@@ -112,7 +112,7 @@ angular.module('kibana.histogram', [])
...
@@ -112,7 +112,7 @@ angular.module('kibana.histogram', [])
var
series
=
{
var
series
=
{
data
:
{
data
:
{
label
:
$scope
.
panel
.
query
[
k
].
label
||
k
,
label
:
$scope
.
panel
.
query
[
k
].
label
||
(
parseInt
(
k
)
+
1
)
,
data
:
data
,
data
:
data
,
},
},
...
@@ -167,11 +167,7 @@ angular.module('kibana.histogram', [])
...
@@ -167,11 +167,7 @@ angular.module('kibana.histogram', [])
var
height
=
scope
.
panel
.
height
||
scope
.
row
.
height
;
var
height
=
scope
.
panel
.
height
||
scope
.
row
.
height
;
elem
.
html
(
elem
.
html
(
'<center><img src="common/img/load_big.gif"></center>'
)
'<div class="legend_container"></div>'
+
'<div class="chart" style="height:'
+
height
+
'">'
+
'<center><img src="common/img/load_big.gif"></center>'
+
'</div>'
)
// Receive render events
// Receive render events
scope
.
$on
(
'render'
,
function
(){
scope
.
$on
(
'render'
,
function
(){
...
@@ -211,7 +207,7 @@ angular.module('kibana.histogram', [])
...
@@ -211,7 +207,7 @@ angular.module('kibana.histogram', [])
scripts
.
wait
(
function
(){
scripts
.
wait
(
function
(){
// Populate element
// Populate element
try
{
try
{
var
plot
=
$
.
plot
(
$
(
'.chart'
,
elem
)
,
scope
.
data
,
{
var
plot
=
$
.
plot
(
elem
,
scope
.
data
,
{
legend
:
{
legend
:
{
show
:
false
,
show
:
false
,
},
},
...
@@ -248,6 +244,7 @@ angular.module('kibana.histogram', [])
...
@@ -248,6 +244,7 @@ angular.module('kibana.histogram', [])
_
.
each
(
plot
.
getData
(),
function
(
series
)
{
_
.
each
(
plot
.
getData
(),
function
(
series
)
{
scope
.
legend
.
push
(
_
.
pick
(
series
,
'label'
,
'color'
))
scope
.
legend
.
push
(
_
.
pick
(
series
,
'label'
,
'color'
))
})
})
scope
.
$apply
()
}
catch
(
e
)
{
}
catch
(
e
)
{
elem
.
text
(
e
)
elem
.
text
(
e
)
}
}
...
...
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