Revert "Revert "Added Function for percentage based renderering""

This reverts commit b7f51a902fdb9c05b4aa5e9eeb9202b228813dc2.