Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
e82c6ff2
Commit
e82c6ff2
authored
Jun 13, 2018
by
Sascha Herzinger
Browse files
Fixed issue that occured when group is empty (survival plot)
parent
3936a6da
Pipeline
#5387
passed with stages
in 5 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/vue/charts/Survivalplot.vue
View file @
e82c6ff2
...
...
@@ -87,6 +87,7 @@
import
Crosshair
from
'
../components/Crosshair.vue
'
import
Html2svg
from
'
../components/HTML2SVG.vue
'
import
Draggable
from
'
../components/Draggable.vue
'
import
_
from
'
lodash
'
export
default
{
name
:
'
survivalplot
'
,
components
:
{
Draggable
,
Html2svg
,
Crosshair
,
DataBox
,
Chart
,
ControlPanel
},
...
...
@@ -142,6 +143,9 @@
let
estimateGlobalMax
=
Number
.
MIN_SAFE_INTEGER
this
.
results
.
categories
.
forEach
(
category
=>
{
this
.
results
.
subsets
.
forEach
(
subset
=>
{
if
(
!
_
.
has
(
this
.
results
.
stats
,
[
category
,
subset
]))
{
return
true
}
const
[
localTimelineMin
,
localTimelineMax
]
=
d3
.
extent
(
this
.
results
.
stats
[
category
][
subset
].
timeline
)
timelineGlobalMin
=
localTimelineMin
<
timelineGlobalMin
?
localTimelineMin
:
timelineGlobalMin
timelineGlobalMax
=
localTimelineMax
>
timelineGlobalMax
?
localTimelineMax
:
timelineGlobalMax
...
...
@@ -176,6 +180,9 @@
const
groups
=
[]
this
.
results
.
categories
.
forEach
(
category
=>
{
this
.
results
.
subsets
.
forEach
(
subset
=>
{
if
(
!
_
.
has
(
this
.
results
.
stats
,
[
category
,
subset
]))
{
return
true
}
groups
.
push
({
name
:
this
.
getGroupName
(
category
,
subset
)})
})
})
...
...
@@ -188,6 +195,9 @@
const
paths
=
[]
this
.
results
.
categories
.
forEach
(
category
=>
{
this
.
results
.
subsets
.
forEach
(
subset
=>
{
if
(
!
_
.
has
(
this
.
results
.
stats
,
[
category
,
subset
]))
{
return
true
}
let
path
=
''
this
.
results
.
stats
[
category
][
subset
].
estimate
.
forEach
((
d
,
i
,
arr
)
=>
{
const
stats
=
this
.
results
.
stats
[
category
][
subset
]
...
...
@@ -211,6 +221,9 @@
const
paths
=
[]
this
.
results
.
categories
.
forEach
(
category
=>
{
this
.
results
.
subsets
.
forEach
(
subset
=>
{
if
(
!
_
.
has
(
this
.
results
.
stats
,
[
category
,
subset
]))
{
return
true
}
const
stats
=
this
.
results
.
stats
[
category
][
subset
]
let
path
=
''
let
backpath
=
'
Z
'
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment