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
a4f8d4d8
Commit
a4f8d4d8
authored
Sep 23, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed path to pie and some double quote escaping issues
parent
f42de5f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/app/panels/pie/module.html
+3
-2
src/app/panels/pie/module.js
+1
-1
No files found.
src/app/panels/pie/module.html
View file @
a4f8d4d8
<div
ng-controller=
'pie'
ng-init=
"init()"
>
<div
ng-controller=
'pie'
ng-init=
"init()"
>
<div
ng-show=
"panel.legend == 'above'"
ng-repeat=
"query in legend"
style=
"float:left;padding-left: 10px;"
>
<div
ng-show=
"panel.legend == 'above'"
ng-repeat=
"query in legend"
style=
"float:left;padding-left: 10px;"
>
<span
ng-show=
'panel.chart != "none"'
><i
class=
"icon-circle"
ng-style=
"{color:query.color}"
></i></span><span
class=
"small"
>
{{query.label}} ({{query.data[0][1]}})
</span></span>
<span
ng-show=
"panel.chart != 'none'"
><i
class=
"icon-circle"
ng-style=
"{color:query.color}"
></i></span><span
class=
"small"
>
{{query.label}} ({{query.data[0][1]}})
</span></span>
</div><br>
</div><br>
<div
style=
"clear:both"
></div>
<div
style=
"clear:both"
></div>
<div
pie
class=
"pointer"
params=
"{{panel}}"
style=
"position:relative"
></div>
<div
pie
class=
"pointer"
params=
"{{panel}}"
style=
"position:relative"
></div>
<div
ng-show=
"panel.legend == 'below'"
ng-repeat=
"query in legend"
style=
"float:left;padding-left: 10px;"
>
<div
ng-show=
"panel.legend == 'below'"
ng-repeat=
"query in legend"
style=
"float:left;padding-left: 10px;"
>
<span
ng-show=
'panel.chart != "none"'
><i
class=
"icon-circle"
ng-style=
"{color:query.color}"
></i></span><span
class=
"small"
>
{{query.label}} ({{query.data[0][1]}})
</span></span>
<span
ng-show=
"panel.chart != 'none'"
><i
class=
"icon-circle"
ng-style=
"{color:query.color}"
></i></span><span
class=
"small"
>
{{query.label}} ({{query.data[0][1]}})
</span></span>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/panels/pie/module.js
View file @
a4f8d4d8
...
@@ -254,7 +254,7 @@ define([
...
@@ -254,7 +254,7 @@ define([
// Populate legend
// Populate legend
if
(
elem
.
is
(
":visible"
)){
if
(
elem
.
is
(
":visible"
)){
require
([
'
vendor/jquery/jquery.flot.pie.js
'
],
function
(){
require
([
'
jquery.flot.pie
'
],
function
(){
scope
.
legend
=
$
.
plot
(
elem
,
scope
.
data
,
pie
).
getData
();
scope
.
legend
=
$
.
plot
(
elem
,
scope
.
data
,
pie
).
getData
();
if
(
!
scope
.
$$phase
)
{
if
(
!
scope
.
$$phase
)
{
scope
.
$apply
();
scope
.
$apply
();
...
...
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