Skip to content

Commit

Permalink
Merge pull request #300 from pandutibil/development
Browse files Browse the repository at this point in the history
Break included in the tooltip after location names for the map report
  • Loading branch information
tibil-it authored Jul 28, 2022
2 parents c13c7d7 + 3b5d974 commit 6989395
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 6989395

Please sign in to comment.