Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tomáš Peterka
erp5
Commits
0d6e9174
Commit
0d6e9174
authored
Apr 20, 2017
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_test_result: use plotly widget for displaying graph (this allow to zoom)
parent
5704998d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/test_result_js/gadget_erp5_test_result_performance_graph.js.js
...result_js/gadget_erp5_test_result_performance_graph.js.js
+5
-4
No files found.
bt5/erp5_test_result/SkinTemplateItem/portal_skins/erp5_test_result/test_result_js/gadget_erp5_test_result_performance_graph.js.js
View file @
0d6e9174
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
)
{
"
use strict
"
;
"
use strict
"
;
var
WIDGET_GRAPH_URL
=
"
../
gadget_officejs_widget_graph_chart
.html
"
;
var
WIDGET_GRAPH_URL
=
"
../
unsafe/gadget_officejs_widget_graph_plotly
.html
"
;
function
getDateAsString
(
date
)
{
function
getDateAsString
(
date
)
{
var
date_string
=
""
+
date
.
getFullYear
()
+
"
-
"
,
var
date_string
=
""
+
date
.
getFullYear
()
+
"
-
"
,
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
property_list
.
forEach
(
function
(
property
)
{
property_list
.
forEach
(
function
(
property
)
{
var
i
,
data
=
{};
var
i
,
data
=
{};
console
.
log
(
"
property
"
,
property
);
console
.
log
(
"
property
"
,
property
);
data
.
type
=
"
line
"
;
data
.
type
=
"
scatter
"
;
data
.
title
=
property
;
data
.
title
=
property
;
data
.
value_dict
=
{
0
:
[],
1
:
[]};
data
.
value_dict
=
{
0
:
[],
1
:
[]};
for
(
i
=
0
;
i
<
line_list
.
length
;
i
=
i
+
1
)
{
for
(
i
=
0
;
i
<
line_list
.
length
;
i
=
i
+
1
)
{
...
@@ -99,6 +99,7 @@
...
@@ -99,6 +99,7 @@
WIDGET_GRAPH_URL
,
WIDGET_GRAPH_URL
,
{
{
scope
:
"
graph
"
,
scope
:
"
graph
"
,
sandbox
:
"
iframe
"
,
element
:
gadget
.
element
.
querySelector
(
"
.document-content
"
)
element
:
gadget
.
element
.
querySelector
(
"
.document-content
"
)
})
})
.
push
(
function
(
graph_gadget
)
{
.
push
(
function
(
graph_gadget
)
{
...
@@ -106,7 +107,7 @@
...
@@ -106,7 +107,7 @@
gadget
.
property_dict
.
graph_data_dict
=
{
data
:
[{
gadget
.
property_dict
.
graph_data_dict
=
{
data
:
[{
value_dict
:
{
0
:
[],
value_dict
:
{
0
:
[],
1
:
[]},
1
:
[]},
type
:
"
line
"
type
:
"
scatter
"
}],
}],
layout
:
{
axis_dict
:
{
0
:
{
"
title
"
:
"
commit
"
},
layout
:
{
axis_dict
:
{
0
:
{
"
title
"
:
"
commit
"
},
1
:
{
"
title
"
:
"
performance
"
}
1
:
{
"
title
"
:
"
performance
"
}
...
@@ -135,4 +136,4 @@
...
@@ -135,4 +136,4 @@
return
getCheckDateAndRefreshGraphFunction
(
this
)();
return
getCheckDateAndRefreshGraphFunction
(
this
)();
}
}
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
));
\ No newline at end of file
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