Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metagenedb
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metagenomics
metagenedb
Commits
584a5f59
Commit
584a5f59
authored
5 years ago
by
Kenzo-Hugo Hillion
♻️
Browse files
Options
Downloads
Patches
Plain Diff
clean code
parent
925b5b5e
No related branches found
No related tags found
2 merge requests
!59
Prod
,
!23
Add more statistical graph about gene catalog
Pipeline
#19269
passed
5 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/components/Doughnut.vue
+15
-15
15 additions, 15 deletions
frontend/src/components/Doughnut.vue
frontend/src/components/Histogram.vue
+9
-9
9 additions, 9 deletions
frontend/src/components/Histogram.vue
with
24 additions
and
24 deletions
frontend/src/components/Doughnut.vue
+
15
−
15
View file @
584a5f59
...
...
@@ -58,21 +58,6 @@ export default {
noGraph
:
true
,
}
},
watch
:
{
doughnutData
(
val
)
{
if
(
this
.
noGraph
)
{
this
.
noGraph
=
false
;
this
.
createChart
();
}
this
.
updateChart
();
},
hideLegend
(
val
)
{
this
.
updateChartOptions
();
},
hideLabels
()
{
this
.
updateChartData
();
}
},
computed
:
{
hideLabelsLabel
()
{
if
(
Object
.
entries
(
this
.
doughnutData
).
length
==
0
)
{
...
...
@@ -138,5 +123,20 @@ export default {
this
.
myChart
.
update
();
},
},
watch
:
{
doughnutData
(
val
)
{
if
(
this
.
noGraph
)
{
this
.
noGraph
=
false
;
this
.
createChart
();
}
this
.
updateChart
();
},
hideLegend
(
val
)
{
this
.
updateChartOptions
();
},
hideLabels
()
{
this
.
updateChartData
();
}
},
};
</
script
>
This diff is collapsed.
Click to expand it.
frontend/src/components/Histogram.vue
+
9
−
9
View file @
584a5f59
...
...
@@ -32,15 +32,6 @@ export default {
noGraph
:
true
,
}
},
watch
:
{
histoData
(
val
)
{
if
(
this
.
noGraph
)
{
this
.
noGraph
=
false
;
this
.
createChart
();
}
this
.
updateChart
();
},
},
methods
:
{
createChart
()
{
const
ctx
=
document
.
getElementById
(
this
.
chartId
);
...
...
@@ -66,5 +57,14 @@ export default {
this
.
myChart
.
update
();
},
},
watch
:
{
histoData
(
val
)
{
if
(
this
.
noGraph
)
{
this
.
noGraph
=
false
;
this
.
createChart
();
}
this
.
updateChart
();
},
},
};
</
script
>
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