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
452ac6be
Commit
452ac6be
authored
12 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
CCS-9 SP-390 : Added axes.
SVN: 27851
parent
30089a0c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eu_basynthec/source/core-plugins/basynthec/1/as/webapps/basynthec/browser/basynthec-browser.js
+24
-2
24 additions, 2 deletions
...nthec/1/as/webapps/basynthec/browser/basynthec-browser.js
with
24 additions
and
2 deletions
eu_basynthec/source/core-plugins/basynthec/1/as/webapps/basynthec/browser/basynthec-browser.js
+
24
−
2
View file @
452ac6be
...
...
@@ -1068,7 +1068,29 @@ Od600InspectorView.prototype.updateView = function(duration)
.
style
(
"
stroke
"
,
function
(
d
)
{
var
lines
=
this
.
parentNode
.
__data__
;
return
lines
.
color
;
});
// Draw the scale
var
scaleg
=
dataDisplay
.
selectAll
(
"
g.scale
"
).
data
(
curveData
);
scaleg
.
enter
().
append
(
"
svg:g
"
).
attr
(
"
class
"
,
"
scale
"
);
// The first two columns of data are the strain name and human-readable desc
var
scale
=
scaleg
.
selectAll
(
"
line
"
).
data
([[
1
,
0
],
[
0
,
1
]]);
scale
.
enter
().
append
(
"
svg:line
"
)
.
style
(
"
stroke-width
"
,
"
1
"
)
.
style
(
"
stroke
"
,
"
black
"
)
.
attr
(
"
x1
"
,
"
0
"
)
.
attr
(
"
y1
"
,
function
(
d
)
{
return
graphHeight
(
this
.
parentNode
.
parentNode
.
parentNode
.
__data__
)})
.
attr
(
"
x2
"
,
"
0
"
)
.
attr
(
"
y2
"
,
function
(
d
)
{
return
graphHeight
(
this
.
parentNode
.
parentNode
.
parentNode
.
__data__
)});
scale
.
attr
(
"
x2
"
,
function
(
d
)
{
var
graph
=
this
.
parentNode
.
parentNode
.
parentNode
.
__data__
;
return
d
[
0
]
*
graphWidth
(
graph
)
})
.
attr
(
"
y2
"
,
function
(
d
)
{
var
graph
=
this
.
parentNode
.
parentNode
.
parentNode
.
__data__
;
return
graphHeight
(
graph
)
-
(
d
[
1
]
*
graphHeight
(
graph
))
});
// remove
inspector
.
exit
().
transition
()
...
...
@@ -1154,7 +1176,7 @@ function od600DataForStrain(d) {
if
(
null
==
strainData
)
return
{};
strainData
.
map
(
function
(
curve
)
{
idx
=
idx
+
1
;
data
.
push
({
strain
:
d
,
index
:
idx
,
values
:
curve
});
data
.
push
({
strain
:
d
,
index
:
idx
,
values
:
curve
,
timepoints
:
ds
.
od600Timepoints
});
});
})
return
data
;
...
...
@@ -1170,7 +1192,7 @@ function curveData(d, i)
var
color
=
curveColors
(
d
.
index
);
// Don't normalize -- use 2 as the global max value
// var maxValue = (0 == d.values.length) ? 0 : d3.max(d.values);
return
[{
length
:
d
.
values
.
length
,
max
:
2
,
values
:
d
.
values
,
color
:
color
}]
return
[{
length
:
d
.
values
.
length
,
max
:
2
,
values
:
d
.
values
,
color
:
color
,
timeoints
:
d
.
timepoints
}]
}
function
lineData
(
d
)
...
...
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