Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-qtl-db
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
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
cc-qtl
cc-qtl-db
Merge requests
!92
Experiements box plot per genotypes 104
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Experiements box plot per genotypes 104
experiements-box-plot-per-genotypes-104
into
dev
Overview
0
Commits
4
Pipelines
4
Changes
4
Merged
Remi PLANEL
requested to merge
experiements-box-plot-per-genotypes-104
into
dev
3 years ago
Overview
0
Commits
4
Pipelines
4
Changes
4
Expand
0
0
Merge request reports
Compare
dev
version 2
14251314
3 years ago
version 1
0062ea78
3 years ago
dev (base)
and
latest version
latest version
11641980
4 commits,
3 years ago
version 2
14251314
2 commits,
3 years ago
version 1
0062ea78
1 commit,
3 years ago
4 files
+
261
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
client-nuxt/components/charts/PhenotypeBarPlot.vue
0 → 100644
+
103
−
0
Options
<
template
>
<v-card
flat
><highcharts
ref=
"chart"
:options=
"sanitizedchartOptions"
:update-args=
"[true, true, true]"
></highcharts>
</v-card>
</
template
>
<
script
>
export
default
{
props
:
{
groupedPhenotypes
:
{
type
:
Array
,
default
:
()
=>
[]
},
phenotypeName
:
{
type
:
String
,
default
:
()
=>
''
},
},
data
()
{
return
{
chartOptions
:
{
chart
:
{
type
:
'
column
'
,
},
legend
:
{
enabled
:
false
},
title
:
{
text
:
'
Histogram using a column chart
'
,
},
xAxis
:
{
title
:
{
text
:
'
Genotypes
'
},
type
:
'
category
'
,
// crosshair: true,
},
yAxis
:
{
min
:
0
,
title
:
{
text
:
''
,
},
},
tooltip
:
{
headerFormat
:
'
<b>{point.key}</b><br>
'
,
pointFormat
:
'
mean : {point.y:.3f}
'
,
shared
:
true
,
useHTML
:
true
,
},
plotOptions
:
{
column
:
{
// colorByPoint: true,
pointPadding
:
0
,
// borderWidth: 0,
groupPadding
:
0
,
// shadow: false,
},
},
series
:
[
{
name
:
'
Data
'
,
// data: [
// 49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 124.1, 95.6, 54.4,
// ],
},
],
exporting
:
{
sourceWidth
:
1600
,
sourceHeight
:
900
,
},
credits
:
false
,
},
}
},
computed
:
{
categories
()
{
return
this
.
groupedPhenotypes
.
map
((
d
)
=>
d
[
0
])
},
phenotypes
()
{
return
this
.
groupedPhenotypes
.
map
((
d
)
=>
d
[
1
])
},
sanitizedchartOptions
()
{
return
{
...
this
.
chartOptions
,
title
:
{
...
this
.
chartOptions
,
text
:
`Mean of <b>
${
this
.
phenotypeName
}
</b>`
,
},
// xAxis: { ...this.chartOptions.xAxis, categories: this.categories },
yAxis
:
{
title
:
{
text
:
`Mean of
${
this
.
phenotypeName
}
`
,
},
},
series
:
this
.
chartOptions
.
series
.
map
((
s
,
i
)
=>
{
if
(
i
===
0
)
{
return
{
...
s
,
data
:
this
.
groupedPhenotypes
}
}
else
{
return
s
}
}),
}
},
},
}
</
script
>
<
style
></
style
>