Skip to content

Commit

Permalink
Break included in the tooltip after location names for the map report
Browse files Browse the repository at this point in the history
  • Loading branch information
EXTERNAL Ankani Pandu Ranga Varma (Tibil , SX/EHC35) authored and EXTERNAL Ankani Pandu Ranga Varma (Tibil , SX/EHC35) committed Jul 28, 2022
1 parent c13c7d7 commit 3b5d974
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 20 deletions.
3 changes: 3 additions & 0 deletions development/ui/back-end/controller/common/CommonController.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ async function getMapReportData(reqBody, reportConfig, rawData) {
}
}

data.tooltip += "<br>";
dimensions.forEach(dimension => {
if (dimension.weightedAverage) {
let numeratorSum = 0;
Expand Down Expand Up @@ -378,6 +379,8 @@ async function getMapReportData(reqBody, reportConfig, rawData) {
}
}

data.tooltip += "<br>";

dimensions.forEach(dimension => {
let value = record[dimension.property] ? record[dimension.property] : 0;

Expand Down
11 changes: 11 additions & 0 deletions development/ui/back-end/core/config/nvsk/pgi_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ const dataSourceInfo = {
map: {
pathToFile: 'pgi_all-dashboard.json',
locations: [
{
name: "Location",
property: "State Name",
level: "state",
isState: true,
tooltip: {
name: "State/UT name"
//valueAsName: true,
//property: "Started"
}
},
{
name: "Location",
property: "District Name",
Expand Down
40 changes: 20 additions & 20 deletions development/ui/back-end/core/config/nvsk/udise_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,26 @@ const dataSourceInfo = {
// type: "AVG"
// }
// },
{
name: "% govt aided schools received textbook",
property: "% govt aided schools received textbook",
tooltip: {
name: "% govt aided schools received textbook"
},
aggegration: {
type: "AVG"
}
},
{
name: "% schools with Ramp",
property: "% schools with Ramp",
tooltip: {
name: "% schools with Ramp"
},
aggegration: {
type: "AVG"
}
},
// {
// name: "% govt aided schools received textbook",
// property: "% govt aided schools received textbook",
// tooltip: {
// name: "% govt aided schools received textbook"
// },
// aggegration: {
// type: "AVG"
// }
// },
// {
// name: "% schools with Ramp",
// property: "% schools with Ramp",
// tooltip: {
// name: "% schools with Ramp"
// },
// aggegration: {
// type: "AVG"
// }
// },
{
name: "state_code",
property: "State Code"
Expand Down

0 comments on commit 3b5d974

Please sign in to comment.