logo

NJP

Servicenow Portal Dynamic Pie High Chart - Part 4 | In English | For all IT Employees

Import · Jul 24, 2020 · video

assalamualaikum everyone i'm back with another video and on my last video uh i have completed my server script uh but then uh to connect with the link function i need to write some of the series uh like uh what will be in the uh bottom line uh so all these things i haven't uh i didn't write uh on my previous video so i'll continue from the server script and then i'll uh finish with the link function hopefully it will complete in this video and if not i will complete it in my next video so let's get started so the first thing is i will write data dot series and equals to this and what will be the name so i will give it as percentage so whenever you hover in the pie so it will come as percentage legend index as 0 because i don't want some legend index data space now inside this you will write what will what will come in the bottom so i will write as open and resolved open comma now the count you will you need to give count count 1 i will give finishing this i will start next name will be resolved comma and over here in this i will just write same thing which i mentioned here math dot round this part math i will write it in the bracket math dot round and i will there's one more thing i need to write is hundred minus uh whatever count i had in count one uh so plus e plus two and plus e minus two so obviously that will be resolved or closed to whatever so it's just an example i am giving you oh i need to close it here as well okay this one is ending here okay uh this one should be removed now uh data dot categories dot for each function it means for each one and inside of this i will write data dot series at zero dot data dot push series at it giving a semi column over here so that's it in the data dot series part uh still nothing will come because uh until i will not write the link function it will not come so this is how server script is completed now in my next video i will start with the link function because it is quite long and i won't be able to finish it in this video so thank you everyone uh just follow the steps which i am showing you and hopefully uh you guys will achieve and learn more and more i hope you guys learn and spread my videos to everyone that's it thank you bye

View original source

https://www.youtube.com/watch?v=uqSSp1Nyi8k