Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
4f31c72f
Commit
4f31c72f
authored
May 21, 2014
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dygraph viewer.
parent
a5051118
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
Gruntfile.js
Gruntfile.js
+10
-0
src/viewer_dygraph/dygraph_gadget.js
src/viewer_dygraph/dygraph_gadget.js
+22
-0
src/viewer_dygraph/index.html
src/viewer_dygraph/index.html
+15
-0
No files found.
Gruntfile.js
View file @
4f31c72f
...
...
@@ -183,6 +183,16 @@ module.exports = function (grunt) {
},
curl
:
{
dygraph
:
{
src
:
"
http://dygraphs.com/dygraph-combined.js
"
,
relative_dest
:
'
lib/dygraph.js
'
,
dest
:
'
<%= global_config.dest %>/<%= curl.dygraph.relative_dest %>
'
},
dygraphdata
:
{
src
:
"
http://dygraphs.com/gallery/data.js
"
,
relative_dest
:
'
lib/dygraphdata.js
'
,
dest
:
'
<%= global_config.dest %>/<%= curl.dygraphdata.relative_dest %>
'
},
ace
:
{
src
:
'
https://github.com/ajaxorg/ace-builds/archive/3bfda31096cf3f42b77aac64eb788584ea796822.zip
'
,
relative_url
:
"
lib/ace-builds-3bfda31096cf3f42b77aac64eb788584ea796822/src-min/ace.js
"
,
...
...
src/viewer_dygraph/dygraph_gadget.js
0 → 100644
View file @
4f31c72f
/*global console, Dygraph, NoisyData, rJS */
/*jslint nomen: true */
(
function
(
window
,
rJS
,
Dygraph
,
NoisyData
)
{
"
use strict
"
;
rJS
(
window
)
.
ready
(
function
(
g
)
{
g
.
render
();
})
.
declareMethod
(
'
render
'
,
function
(
data
)
{
var
gadget
=
this
,
graph
=
new
Dygraph
(
data
||
NoisyData
,
{
roolPeriod
:
7
,
errorBars
:
true
}
);
return
graph
;
});
}(
window
,
rJS
,
Dygraph
,
NoisyData
));
src/viewer_dygraph/index.html
0 → 100644
View file @
4f31c72f
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Dygraph
</title>
<script
src=
"../<%= copy.rsvp.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= curl.dygraphdata.relative_dest %>"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"../<%= curl.dygraph.relative_dest %>"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"dygraph_gadget.js"
type=
"text/javascript"
></script>
</head>
<body>
</body>
</html>
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