-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ring chart legend/ring colour missmatch
- ensure legend colours update on changes of data - apply a better custom colour to 'completed' state (rusty red --> sky blue)
- Loading branch information
1 parent
da6eb12
commit a9d76f0
Showing
3 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
src/frontend/packages/core/src/shared/components/ring-chart/ring-chart.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
<div class="app-ring-chart"> | ||
<div class="pie"> | ||
<ngx-charts-pie-chart [customColors]="customColors" [view]="[120,120]" [animations]="true" [doughnut]="true" [results]="data" [gradient]="false"> | ||
<ngx-charts-pie-chart [customColors]="customColors" [view]="[120,120]" [animations]="true" [doughnut]="true" | ||
[results]="data" [gradient]="false"> | ||
</ngx-charts-pie-chart> | ||
</div> | ||
<div class="legend"> | ||
<div class="advanced-pie-legend"> | ||
<div class="total-value" ngx-charts-count-up [countTo]="getTotal()"></div> | ||
<div class="total-label">{{ label }}</div> | ||
</div> | ||
<ngx-charts-advanced-legend [data]="data" [label]="label" [colors]="colors" [animations]="true" [valueFormatting]="valueFormatting" [labelFormatting]="nameFormatting" [percentageFormatting]="percentageFormatting" (select)="onClick($event)" (activate)="onActivate($event)" | ||
<ngx-charts-advanced-legend [data]="data" [label]="label" [colors]="colors" [animations]="true" | ||
[valueFormatting]="valueFormatting" [labelFormatting]="nameFormatting" | ||
[percentageFormatting]="percentageFormatting" (select)="onClick($event)" (activate)="onActivate($event)" | ||
(deactivate)="onDeactivate($event)"> | ||
</ngx-charts-advanced-legend> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters