Merge pull request #5284 from tsiegleauq/clickable-motion-charts
Remove tooltips for charts
This commit is contained in:
commit
aaea4ec2e9
@ -90,6 +90,9 @@ export class ChartsComponent extends BaseViewComponent {
|
|||||||
if (this.isCircle) {
|
if (this.isCircle) {
|
||||||
return {
|
return {
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
|
tooltips: {
|
||||||
|
enabled: false
|
||||||
|
},
|
||||||
legend: {
|
legend: {
|
||||||
position: 'left'
|
position: 'left'
|
||||||
}
|
}
|
||||||
@ -97,6 +100,9 @@ export class ChartsComponent extends BaseViewComponent {
|
|||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
aspectRatio: 3,
|
aspectRatio: 3,
|
||||||
|
tooltips: {
|
||||||
|
enabled: false
|
||||||
|
},
|
||||||
scales: {
|
scales: {
|
||||||
xAxes: [
|
xAxes: [
|
||||||
{
|
{
|
||||||
|
@ -60,6 +60,8 @@
|
|||||||
<div *ngIf="poll.stateHasVotes">
|
<div *ngIf="poll.stateHasVotes">
|
||||||
<div *osPerms="'assignments.can_manage'; or: poll.isPublished">
|
<div *osPerms="'assignments.can_manage'; or: poll.isPublished">
|
||||||
<os-charts
|
<os-charts
|
||||||
|
class="pointer"
|
||||||
|
routerLink="/assignments/polls/{{ poll.id }}"
|
||||||
[labels]="candidatesLabels"
|
[labels]="candidatesLabels"
|
||||||
[data]="chartDataSubject | async"
|
[data]="chartDataSubject | async"
|
||||||
[hasPadding]="false"
|
[hasPadding]="false"
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
</os-icon-container>
|
</os-icon-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="doughnut-chart">
|
<div class="doughnut-chart" [routerLink]="pollLink">
|
||||||
<os-charts *ngIf="showChart" type="doughnut" [data]="chartDataSubject | async" [hasPadding]="false">
|
<os-charts *ngIf="showChart" type="doughnut" [data]="chartDataSubject | async" [hasPadding]="false">
|
||||||
</os-charts>
|
</os-charts>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user