@walter
Sorry walter but I believe this logic is not working for me. Part considers its origin point to be at the point from where a node starts. Second thing if I add delete or resize any node inside the canvas then this color bar moves accordingly.
It is too much to calculate and place that color bar at extreme ends.
It is impossible for me to calculate the positioning in a dynamic canvas.