Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
d5d99c1b
Commit
d5d99c1b
authored
12 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
BIS-151 SP-546 : Add methods for generating graphs
SVN: 28646
parent
1d9d3e34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/public/resources/js-new/openbis.js
+40
-0
40 additions, 0 deletions
.../systemsx/cisd/openbis/public/resources/js-new/openbis.js
with
40 additions
and
0 deletions
openbis/source/java/ch/systemsx/cisd/openbis/public/resources/js-new/openbis.js
+
40
−
0
View file @
d5d99c1b
...
@@ -1522,6 +1522,46 @@ openbis.prototype.getValidationScriptForDataStore = function(dataSetTypeOrNull,
...
@@ -1522,6 +1522,46 @@ openbis.prototype.getValidationScriptForDataStore = function(dataSetTypeOrNull,
});
});
}
}
/**
* Get a url that will produce a graph with the given configuration.
*
* @method
*/
openbis
.
prototype
.
getGraphUrl
=
function
(
graphconfig
,
dataStoreCodeOrNull
,
action
)
{
function
dssUrlAction
=
function
(
dssUrl
)
{
var
graphUrl
=
dssUrl
+
"
/graphservice/
"
;
graphUrl
+=
"
?sessionID=
"
+
context
.
getSessionId
();
for
(
prop
in
graphconfig
)
{
graphUrl
+=
"
&
"
+
prop
+
"
=
"
+
encodeURIComponent
(
graphconfig
[
prop
]);
}
action
(
graphUrl
);
}
this
.
_internal
.
getDataStoreUrlForDataStoreCode
(
dataStoreCodeOrNull
,
dssUrlAction
);
}
/**
* =====================
* OpenBIS graph config
* =====================
*
* Defines the configuration for a graph generated by the server's graphservice.
*
* To use, set properties on the object with keys that match the name of the servlet
* parameters of the graphservice and then call the method getGraphUrl on the openbis
* object. Do *not* set the sessionID paramter -- this will be filled in by the openbis
* object.
*
* The graphservice is documented here: https://wiki-bsse.ethz.ch/display/openBISDoc/Configuring+Graphs+and+Plots
*
* @class
*
*/
function
openbisGraphConfig
(
filename
,
graphtype
,
title
)
{
this
.
file
=
filename
;
this
[
"
graph-type
"
]
=
graphtype
;
this
.
title
=
title
;
}
/**
/**
* =====================================================
* =====================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment