Problem:
The pie chart display in the pop up, when the value is 100%, show as 1/2.
example:
project size = 2,572.03 sq mi
completed size = 257.03 sq mi
in this expression below the answer comes up correction - 100%
Round((($feature.CompletedAmt/$feature.ProjectSize)*100),2)+"%"
100%
Using this expression, to create a pie chart in the pop up was straightforward and seems to work well.
However, anytime there is a 100% values, the pie displays as 50% / 1:1, like this:
Can anyone with more java/arcade experience explain to me what is going on here?
#arcgis configure pop ups# arcade expressions #arcade pop-ups
Solved! Go to Solution.
What you would need is a field indicating the size the still needs to be completed along with the completed size. The sum of both should be the project size. Don't use the project size in the pie chart.
What you would need is a field indicating the size the still needs to be completed along with the completed size. The sum of both should be the project size. Don't use the project size in the pie chart.
Looks like two fields with the same values were selected in the pop up configuration. If you want to pot your pop-up configuration we can look further into it.
Additionally, based on the numbers provided that expression should produce 9.99 not 100.