Skip to content

Commit

Permalink
Merge pull request Sunbird-cQube#258 from atulmane01/development
Browse files Browse the repository at this point in the history
added nista report for vsk
  • Loading branch information
tibil-it authored Jul 26, 2022
2 parents fde888b + cd32c9b commit b2d8aa4
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 9 deletions.
159 changes: 159 additions & 0 deletions development/ui/back-end/core/config/vsk/etb_config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,163 @@
const dataSourceInfo = {
statesEnergizedTextBooks: {
map: {
mainFilter: 'State Code',
pathToFile: 'diksha_etb_program-started.json',
locations: [
{
name: "Location",
property: "State",
level: "district",
isState: true,
tooltip: {
name: "State/UT name"
}
}
],
dimensions: [
{
name: "indicator",
property: "Energised textbooks (State & NCERT adopted)",
tooltip: {
name: "Textbooks Energized"
}
},
],
filters: [],
options: {
legend: {
title: 'Textbooks Energized'
}
}
},
loTable: {
mainFilter: 'State Code',
pathToFile: 'diksha_etb_etb-coverage.json',
gaugeChart: {
title: 'Overall ETB Coverage',
aggegration: {
type: 'AVG',
column: 'State energised (ETB)',
against: "Total Physical textbooks excluding adopted (Curriculum+Supplementary)"
},
valueSuffix: "%"
},
columns: [
{
name: "State/UT name",
property: "State Name"
},
{
name: "Total Curriculum Textbooks",
property: "Total Physical textbooks excluding adopted (Curriculum+Supplementary)",
class: "text-center"
},
{
name: "Total Energized Textbooks",
property: "Total Energised (Live ETB)",
class: "text-center"
},
{
name: "% Energized Textbooks",
property: "ETB Coverage",
isHeatMapRequired: true,
color: '#002966'
}
],
filters: []
}
},
qrCodeCoverageAcrossStates: {
map: {
pathToFile: 'diksha_etb_qr-coverage.json',
locations: [
{
name: "Location",
property: "State Name",
level: "district",
isState: true,
tooltip: {
name: "State/UT name"
}
}
],
dimensions: [
{
name: "indicator",
property: "QR Coverage",
tooltip: {
name: "QR Code Content Coverage"
},
}
],
filters: [],
options: {
legend: {
title: 'QR Coverage'
},
tooltip: {
reportTypeIndicator: 'percent'
}
}
},
barChart: {
pathToFile: 'diksha_etb_qr-coverage.json',
mainFilter: 'State Code',
gaugeChart: {
title: 'Overall QR Coverage',
aggegration: {
type: 'AVG',
column: 'QR covered',
against: "Total QR Count"
},
valueSuffix: "%"
},
columns: [
{
name: "State/UT name",
property: "State Name",
isLocationName: true
},
{
name: "QR Coverage",
property: "QR Coverage"
}
],
filters: []
}
},
totalPlaysPerCapita: {
map: {
pathToFile: 'diksha_etb_plays-per-capita.json',
mainFilter: 'State Code',
locations: [
{
name: "Location",
property: "State Name",
level: "district",
isState: true,
tooltip: {
name: "State/UT name"
}
}
],
dimensions: [
{
name: "indicator",
property: "Plays per capita ( 1st April 2020)",
tooltip: {
name: "Learning Sessions per Capita"
},
}
],
filters: [],
options: {
legend: {
title: 'Learning Sessions on Potential Users'
}
}
}
},
totalLearningSessions: {
barChart: {
pathToFile: 'diksha_etb_learning-session.json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<div class="tab-group-wrapper">
<mat-tab-group mat-align-tabs="start" animationDuration="0ms" (focusChange)="onTabChanged($event);">
<mat-tab label="Implementation Status" class="tab-first" *ngIf="NVSK">
<mat-tab label="Implementation Status" class="tab-first" >
<div class="col">
<div class="grid grid-cols-12">
<div class="col-span-full" appFullScreen>
Expand All @@ -28,16 +28,16 @@
<p class="mt-8">Loading...</p>
</div>
</mat-tab>
<mat-tab label="ETB Coverage Status" *ngIf="NVSK">
<mat-tab label="ETB Coverage Status" >
<app-digital-learning-coverage></app-digital-learning-coverage>
</mat-tab>
<mat-tab label="Content against QR Code Status" class="tab-last" *ngIf="NVSK">
<mat-tab label="Content against QR Code Status" class="tab-last" >
<app-qr-coverage-across-states></app-qr-coverage-across-states>
</mat-tab>
<mat-tab label="Learning Sessions" class="tab-last">
<app-total-learning-sessions></app-total-learning-sessions>
</mat-tab>
<mat-tab label="Learning Sessions on Potential Users" *ngIf="NVSK">
<mat-tab label="Learning Sessions on Potential Users" >
<app-total-plays-per-capita></app-total-plays-per-capita>
</mat-tab>
</mat-tab-group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ export class DigitalLearningComponent implements OnInit {

this.stateWiseEnrollmentData = res.result;
});
if(this.NVSK){
this.getETBData(this.filters);
}
this.getETBData(this.filters);
}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class NisithaStackedBarComponent implements OnInit {
{
type: 'bar',
color: "rgb(239,243,255)",
name: '% Total Target-Enrollment',
name: '% Total Target-Enrolment',
data: result.map((record: any) => {
return {
y: Number(Number(100 - record['% Target Achieved- Enrolment']).toFixed(2)),
Expand All @@ -100,7 +100,7 @@ export class NisithaStackedBarComponent implements OnInit {
{
type: 'bar',
color: "rgb(33,113,181)",
name: '% Target Achieved-Enrollment',
name: '% Target Achieved-Enrolment',
data: result.map((record: any) => {
return record['% Target Achieved- Enrolment'];
})
Expand Down

0 comments on commit b2d8aa4

Please sign in to comment.