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
f4feb380
Commit
f4feb380
authored
Mar 20, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(graph): fixed issue with graph and legend to the right in snapshots, closes #4400
parent
82232e25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
13 deletions
+21
-13
public/app/plugins/panel/graph/legend.js
+1
-0
public/app/plugins/panel/graph/module.ts
+2
-1
public/app/plugins/panel/graph/template.ts
+18
-12
No files found.
public/app/plugins/panel/graph/legend.js
View file @
f4feb380
...
...
@@ -101,6 +101,7 @@ function (angular, _, $) {
}
function
render
()
{
console
.
log
(
'render legend'
);
if
(
firstRender
)
{
elem
.
append
(
$container
);
$container
.
on
(
'click'
,
'.graph-legend-icon'
,
openColorSelector
);
...
...
public/app/plugins/panel/graph/module.ts
View file @
f4feb380
...
...
@@ -4,6 +4,7 @@ import './graph';
import
'./legend'
;
import
'./series_overrides_ctrl'
;
import
template
from
'./template'
;
import
moment
from
'moment'
;
import
kbn
from
'app/core/utils/kbn'
;
import
_
from
'lodash'
;
...
...
@@ -83,7 +84,7 @@ var panelDefaults = {
};
class
GraphCtrl
extends
MetricsPanelCtrl
{
static
template
Url
=
'module.html'
;
static
template
=
template
;
hiddenSeries
:
any
=
{};
seriesList
:
any
=
[];
...
...
public/app/plugins/panel/graph/
module.html
→
public/app/plugins/panel/graph/
template.ts
View file @
f4feb380
var
template
=
`
<div class="graph-wrapper" ng-class="{'graph-legend-rightside': ctrl.panel.legend.rightSide}">
<div
class=
"graph-canvas-wrapper"
>
<div class="graph-canvas-wrapper">
<div
ng-if=
"datapointsWarning"
class=
"datapoints-warning"
>
<span
class=
"small"
ng-show=
"!datapointsCount"
>
No datapoints
<tip>
No datapoints returned from metric query
</tip>
</span>
<span
class=
"small"
ng-show=
"datapointsOutside"
>
Datapoints outside time range
<tip>
Can be caused by timezone mismatch between browser and graphite server
</tip></span>
</div>
<div ng-if="datapointsWarning" class="datapoints-warning">
<span class="small" ng-show="!datapointsCount">
No datapoints <tip>No datapoints returned from metric query</tip>
</span>
<span class="small" ng-show="datapointsOutside">
Datapoints outside time range
<tip>Can be caused by timezone mismatch between browser and graphite server</tip>
</span>
</div>
<div
grafana-graph
class=
"histogram-chart"
ng-dblclick=
"ctrl.zoomOut()"
>
</div>
<div grafana-graph class="histogram-chart" ng-dblclick="ctrl.zoomOut()">
</div>
</div>
</div>
<div
class=
"graph-legend-wrapper"
ng-if=
"ctrl.panel.legend.show
"
graph-legend
></div>
</div>
<div class="graph-legend-wrapper
" graph-legend></div>
</div>
<div class="clearfix"></div>
`
;
export
default
template
;
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