Add unreported status

This commit is contained in:
Sam Carlton 2020-11-28 17:54:32 -06:00
parent a147ab15c3
commit 8012fcd92b
3 changed files with 14 additions and 3 deletions

View file

@ -47,6 +47,7 @@ export default {
return {
nativePercent: null,
rosettaPercent: null,
unreportedPercent: null,
unsupportedPercent: null
}
},
@ -70,6 +71,13 @@ export default {
percent: this.rosettaPercent,
verbiage: `run via Rosetta 2, `
},
{
textColor: 'text-orange-500',
bgColor: 'bg-orange-500',
emoji: '🔶',
percent: this.unreportedPercent,
verbiage: `are not yet reported, `
},
{
textColor: 'text-red',
bgColor: 'bg-red',
@ -113,7 +121,9 @@ export default {
this.nativePercent = Number((( totals['native'] / this.total ) * 100).toFixed(1))
this.rosettaPercent = Number((( totals['rosetta'] / this.total ) * 100).toFixed(1))
this.unsupportedPercent = Number((100 - (this.nativePercent + this.rosettaPercent)).toFixed(1))
this.unreportedPercent = Number((( totals['unreported'] / this.total ) * 100).toFixed(1))
this.unsupportedPercent = Number((100 - (this.nativePercent + this.rosettaPercent + this.unreportedPercent)).toFixed(1))
// console.log('this.nativePercent', this.nativePercent)
// console.log('this.unsupportedPercent', this.unsupportedPercent)