Thanks Dan.
Figured out that the error was from the bar graph. It took the value fom the text.

Now changing the expression in the scale property in the bargraph shape layer. So that the bar graph know that “No shots taken” equals “0”
transition = 1
xa = 0;
xb = parseInt(thisComp.layer("Shot_Percentage").text.sourceText);
if(!xb){
xb=0;
}
y = 100;
if(time < (inPoint+outPoint)/1){
ease(time,inPoint,inPoint+transition,[xa,y],[xb,y]);
}else{
ease(time,outPoint -transition,outPoint,[xb,y],[xa,y]);
}