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
7d4f0d24
Commit
7d4f0d24
authored
Feb 05, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restructured style settings between axes & grid, and Display Styles
parent
bafa334b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
43 deletions
+60
-43
src/app/panels/graphite/axisEditor.html
+50
-5
src/app/panels/graphite/module.html
+2
-0
src/app/panels/graphite/module.js
+1
-1
src/app/panels/graphite/styleEditor.html
+6
-36
src/app/services/graphite/graphiteSrv.js
+1
-1
No files found.
src/app/panels/graphite/axisEditor.html
View file @
7d4f0d24
<div
class=
"editor-row"
>
<div
class=
"editor-row"
>
<div
class=
"section"
>
<h5>
Axis
</h5>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Left y-axis label
</label>
<input
ng-change=
"get_data()"
ng-model-onblur
placeholder=
""
type=
"text"
class=
"input-large"
ng-model=
"panel.leftYAxisLabel"
>
<label
class=
"small"
>
X-Axis
</label><input
type=
"checkbox"
ng-model=
"panel['x-axis']"
ng-checked=
"panel['x-axis']"
ng-change=
"render()"
>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Right y-axis label
</label>
<input
ng-change=
"get_data()"
ng-model-onblur
placeholder=
""
type=
"text"
class=
"input-large"
ng-model=
"panel.rightYAxisLabel"
>
<label
class=
"small"
>
Y-Axis
</label><input
type=
"checkbox"
ng-model=
"panel['y-axis']"
ng-checked=
"panel['y-axis']"
ng-change=
"render()"
>
</div>
<div
class=
"editor-option"
ng-show=
"panel.points"
>
<label
class=
"small"
>
Point Radius
</label>
<select
class=
"input-mini"
ng-model=
"panel.pointradius"
ng-options=
"f for f in [1,2,3,4,5,6,7,8,9,10]"
ng-change=
"render()"
></select>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Left Y Format
<tip>
Y-axis formatting
</tip></label>
<select
class=
"input-small"
ng-model=
"panel.y_format"
ng-options=
"f for f in ['none','short','bytes', 'ms']"
ng-change=
"render()"
></select>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Right Y Format
<tip>
Y-axis formatting
</tip></label>
<select
class=
"input-small"
ng-model=
"panel.y2_format"
ng-options=
"f for f in ['none','short','bytes', 'ms']"
ng-change=
"render()"
></select>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Left Y-axis label
</label>
<input
ng-change=
"get_data()"
ng-model-onblur
placeholder=
""
type=
"text"
class=
"input-medium"
ng-model=
"panel.leftYAxisLabel"
>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Right Y-axis label
</label>
<input
ng-change=
"get_data()"
ng-model-onblur
placeholder=
""
type=
"text"
class=
"input-medium"
ng-model=
"panel.rightYAxisLabel"
>
</div>
</div>
</div>
<div
class=
"editor-row"
>
<div
class=
"section"
>
<h5>
Grid
</h5>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Min /
<a
href=
''
ng-click=
"panel.grid.min = _.toggle(panel.grid.min,null,0)"
>
Auto
<i
class=
"icon-star"
ng-show=
"_.isNull(panel.grid.min)"
></i></a></label>
<input
type=
"number"
class=
"input-small"
ng-model=
"panel.grid.min"
/>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Max /
<a
ref=
''
ng-click=
"panel.grid.max = _.toggle(panel.grid.max,null,0)"
>
Auto
<i
class=
"icon-star"
ng-show=
"_.isNull(panel.grid.max)"
></i></a></label>
<input
type=
"number"
class=
"input-small"
ng-model=
"panel.grid.max"
/>
</div>
</div>
<div
class=
"section"
>
<h5>
Legend
</h5>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Legend
</label><input
type=
"checkbox"
ng-model=
"panel.legend"
ng-checked=
"panel.legend"
>
</div>
</div>
...
...
src/app/panels/graphite/module.html
View file @
7d4f0d24
...
...
@@ -24,9 +24,11 @@
<div
ng-repeat=
"tab in editorTabs"
data-title=
"{{tab}}"
>
</div>
</div>
<div
class=
"tab-content"
ng-show=
"editorTabs[editor.index] == 'General'"
>
<div
ng-include
src=
"'app/partials/panelgeneral.html'"
></div>
</div>
<div
class=
"tab-content"
ng-repeat=
"tab in panelMeta.fullEditorTabs"
ng-show=
"editorTabs[editor.index] == tab.title"
>
<div
ng-include
src=
"tab.src"
></div>
</div>
...
...
src/app/panels/graphite/module.js
View file @
7d4f0d24
...
...
@@ -46,7 +46,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
src
:
'app/panels/graphite/editor.html'
},
{
title
:
'Axis
label
s'
,
title
:
'Axis
& Legend
s'
,
src
:
'app/panels/graphite/axisEditor.html'
},
{
...
...
src/app/panels/graphite/styleEditor.html
View file @
7d4f0d24
...
...
@@ -4,9 +4,6 @@
<div
class=
"section"
>
<h5>
Chart Options
</h5>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Renderer
</label><select
class=
"input-mini"
ng-model=
"panel.renderer"
ng-options=
"f for f in ['flot', 'png']"
ng-change=
"get_data()"
></select>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Bars
</label><input
type=
"checkbox"
ng-model=
"panel.bars"
ng-checked=
"panel.bars"
ng-change=
"render()"
>
</div>
<div
class=
"editor-option"
>
...
...
@@ -16,27 +13,7 @@
<label
class=
"small"
>
Points
</label><input
type=
"checkbox"
ng-model=
"panel.points"
ng-checked=
"panel.points"
ng-change=
"render()"
>
</div>
</div>
<div
class=
"section"
>
<h5>
Axis
</h5>
<div
class=
"editor-option"
>
<label
class=
"small"
>
xAxis
</label><input
type=
"checkbox"
ng-model=
"panel['x-axis']"
ng-checked=
"panel['x-axis']"
ng-change=
"render()"
>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
yAxis
</label><input
type=
"checkbox"
ng-model=
"panel['y-axis']"
ng-checked=
"panel['y-axis']"
ng-change=
"render()"
>
</div>
<div
class=
"editor-option"
ng-show=
"panel.points"
>
<label
class=
"small"
>
Point Radius
</label>
<select
class=
"input-mini"
ng-model=
"panel.pointradius"
ng-options=
"f for f in [1,2,3,4,5,6,7,8,9,10]"
ng-change=
"render()"
></select>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Left Y Format
<tip>
Y-axis formatting
</tip></label>
<select
class=
"input-small"
ng-model=
"panel.y_format"
ng-options=
"f for f in ['none','short','bytes', 'ms']"
ng-change=
"render()"
></select>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Right Y Format
<tip>
Y-axis formatting
</tip></label>
<select
class=
"input-small"
ng-model=
"panel.y2_format"
ng-options=
"f for f in ['none','short','bytes', 'ms']"
ng-change=
"render()"
></select>
</div>
</div>
<div
class=
"section"
>
<h5>
Line options
</h5>
<div
class=
"editor-option"
ng-show=
"panel.lines"
>
...
...
@@ -70,23 +47,16 @@
</div>
</div>
<div
class=
"section"
>
<h5>
Legend
<h5>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Legend
</label><input
type=
"checkbox"
ng-model=
"panel.legend"
ng-checked=
"panel.legend"
>
</div>
</div>
<div
class=
"section"
>
<h5>
Grid
<
h5>
<h5>
Rendering
</
h5>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Min /
<a
href=
''
ng-click=
"panel.grid.min = _.toggle(panel.grid.min,null,0)"
>
Auto
<i
class=
"icon-star"
ng-show=
"_.isNull(panel.grid.min)"
></i></a
></label>
<input
type=
"
number"
class=
"input-small"
ng-model=
"panel.grid.min"
/>
<label
class=
"small"
>
Flot
<tip>
client side
</tip
></label>
<input
type=
"
radio"
class=
"input-small"
ng-model=
"panel.renderer"
value=
"flot"
ng-change=
"get_data()"
/>
</div>
<div
class=
"editor-option"
>
<label
class=
"small"
>
Max /
<a
ref=
''
ng-click=
"panel.grid.max = _.toggle(panel.grid.max,null,0)"
>
Auto
<i
class=
"icon-star"
ng-show=
"_.isNull(panel.grid.max)"
></i></a
></label>
<input
type=
"
number"
class=
"input-small"
ng-model=
"panel.grid.max"
/>
<label
class=
"small"
>
Graphite PNG
<tip>
server side
</tip
></label>
<input
type=
"
radio"
class=
"input-small"
ng-model=
"panel.renderer"
value=
"png"
ng-change=
"get_data()"
/>
</div>
</div>
</div>
src/app/services/graphite/graphiteSrv.js
View file @
7d4f0d24
...
...
@@ -132,7 +132,7 @@ function (angular, _, $, config, kbn, moment) {
var
clean_options
=
[];
var
graphite_options
=
[
'target'
,
'targets'
,
'from'
,
'until'
,
'rawData'
,
'format'
,
'maxDataPoints'
];
if
(
options
.
renderer
===
'flot
'
)
{
if
(
options
.
renderer
!==
'png
'
)
{
options
[
'format'
]
=
'json'
;
}
...
...
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