logo

NJP

(Main Video) Servicenow Portal Dynamic Pie High Chart - Part 5 | In English | For all IT Employees

Import · Aug 01, 2020 · video

assalamualaikum everyone uh i'm back with another video and today i'll start with the link function so i'll just write because uh it's a it's a bit long and it will take time so let's start it where chart one equals to new high chart uh sorry c should be in small and is to s should be their charts dot c caps chart now inside of this i will write chart so make sure that space should is maintained because space is one of the factored in angularjs to even add 0 comma i will mention the type means chart type scope dot options dot chart type comma because i need to give the title and text should be sorry scope dot options dot chart title which i mentioned in the server script comma again now colors should be declared so one uh colors is basically in the pie chart there should be two color basically one is for red and one is for uh for open and one is for uh resolved so for that you need to uh mention the color so i will give red comma gray so b2 be b5 is the gray color and you can get this in html head up i think so everyone should know this by now so i will write the x axis because this is important x axis and y axis should be maintained uh then only plot option will uh describe everything the height or width of the pie chart and how it should look and etc etc so categories i will give scope dot data dot categories which i mentioned in the server script now title i will not give any title so you should you can skip this one as well i will give text as null now uh after this i will give labels so labels should uh have rotation and notation should be minus 45 and i x as it's done now continue with the y-axis minimum is 0 comma i will not give any title so i'll just copy from here and paste it so my x y axis is also done yeah now i will write plot options now over here i will declare the first uh the class type like pi pi should be there now uh size because it's eighty percent now uh data label uh enabled true now uh distance is -45 overflow justify format is important because whenever you will hover pi high chart so you will get the layout then the numbers or anything whatever you want to print it will come from here so i will just write point dot y means uh the number and then i will give a break and then i will give point dot percentage basically so percentage uh mine should be of one uh in the floating uh carrick floating type so dot one f and after this i will give percentage sign so once this is done i will give this because i need to mention tooltip as well and visible true comma outside false that's it now uh showing legend uh okay i'll just keep showing legit as well show in legend true now once all these are done i will give series which i mentioned as well in the server script in my previous video series so that's it guys i will just save hopefully it should come because i've linked everything no it's not coming so there has to be something that i haven't written but there is something which i haven't given okay now this one is missed category let's see these hopefully i don't know okay at least open and dissolve this coming now i need to check in the link function white is not coming uh so server side is right now let's by size 80 percent data labels minus whatever justify okay let me just remove this and see whether it's coming or not sometimes there might be something i don't know okay okay guys i got it [Music] i got what's the issue uh it was in the format so uh why it was not coming because i need so there was no double quote and i have given double quote no why it is drawing like this okay comma i will give us over your open bracket and a closed bracket okay [Music] now on saving i hope hopefully it will come yeah so resolved is percentage 22 and open is percentage 78. okay uh guys uh thank you uh because there was a lot of error that i made mistakes so we have done that as well now uh in my next video video i'll just call this particular widget in my incident resolved by user okay if you really are liking my videos so kindly subscribe to get more such videos thank you

View original source

https://www.youtube.com/watch?v=2rVf0zK9r0c