Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
1cce1def
Commit
1cce1def
authored
6 years ago
by
Lukas Mauß
Browse files
Options
Downloads
Patches
Plain Diff
Add abstentions-bar to chart
parent
b325d0a8
1 merge request
!138
Resolve "Refine answer statistics"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/components/shared/statistic/statistic.component.ts
+3
-0
3 additions, 0 deletions
src/app/components/shared/statistic/statistic.component.ts
with
3 additions
and
0 deletions
src/app/components/shared/statistic/statistic.component.ts
+
3
−
0
View file @
1cce1def
...
...
@@ -65,8 +65,11 @@ export class StatisticComponent implements OnInit {
this
.
answerList
[
i
].
answer
=
content
.
options
[
i
].
label
;
}
}
this
.
labels
.
push
(
'
Abstentions
'
);
this
.
contentService
.
getAnswer
(
content
.
id
).
subscribe
(
answer
=>
{
this
.
data
=
answer
.
roundStatistics
[
0
].
independentCounts
;
this
.
data
.
push
(
answer
.
roundStatistics
[
0
].
abstentionCount
);
console
.
log
(
this
.
data
);
this
.
chart
=
new
Chart
(
'
chart
'
,
{
type
:
'
bar
'
,
data
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment