Sharepoint 2019 on premise – SharePoint Stack Exchange

struggling with getting percentage complete bar graph working with 2019, was working great with JS file on 2013, but will not work with 2019,, attached screenshot for what we had with 2013 vs 2019

i apprecitate any help, maybe its just not possible in 2019

enter image description here