Issue #130: Done.
This commit is contained in:
@@ -134,7 +134,7 @@
|
|||||||
<!-- Issues chart -->
|
<!-- Issues chart -->
|
||||||
<div v-if="data.timeTrend.chart != null" class="border rounded border-neutral-300 p-2 bg-neutral-10 w-1/2">
|
<div v-if="data.timeTrend.chart != null" class="border rounded border-neutral-300 p-2 bg-neutral-10 w-1/2">
|
||||||
<p class="h2 pl-2 flex justify-between items-center">
|
<p class="h2 pl-2 flex justify-between items-center">
|
||||||
<span>Time Trend<span class="material-symbols-outlined text-sm align-middle ml-2">info</span></span>
|
<span>Time Trend<span class="material-symbols-outlined text-sm align-middle ml-2" v-tooltip.bottom="tooltip.rate">info</span></span>
|
||||||
<span class="text-2xl"><span class="text-cfm-secondary">{{ data.timeTrend.not_conforming }}</span>/{{ data.timeTrend.total }}</span>
|
<span class="text-2xl"><span class="text-cfm-secondary">{{ data.timeTrend.not_conforming }}</span>/{{ data.timeTrend.total }}</span>
|
||||||
</p>
|
</p>
|
||||||
<Chart type="line" :data="timeChartData" :options="timeChartOptions" class="w-[99%]"/>
|
<Chart type="line" :data="timeChartData" :options="timeChartOptions" class="w-[99%]"/>
|
||||||
@@ -242,6 +242,9 @@ export default {
|
|||||||
},
|
},
|
||||||
rate: {
|
rate: {
|
||||||
value: '=(total Non-Conformance/total Conformance)*100%'
|
value: '=(total Non-Conformance/total Conformance)*100%'
|
||||||
|
},
|
||||||
|
timeTrend: {
|
||||||
|
value: '=Not Conforming / (total Conforming+total Not Conforming)'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user